Replace the colon use in href by an underscore#240
Replace the colon use in href by an underscore#240jasminlapalme wants to merge 1 commit intofletcher:developfrom
Conversation
The RFC3986 says that we cannot use the colon in HREF (section 2.2)
This syntax has been in place for quite a while (at least since MultiMarkdown v5, and likely earlier -- I don't have an old version installed and immediately accessible, but Babelmark 2 includes v 5.1.0 and 6.3.0). I have not heard of any issues with footnotes until today, so obviously I'm curious as to why this never came up before. Thanks for any additional information you can provide! |
|
Thanks for your quick response. I've added the rest of the paragraph where it lists the reserved characters. After, it clearly mentions this.
I know this is a very specific problem, but we came up with this problem with a couple of times in our tests. |
The above JavaScript snippet will fail to look up an anchor that uses the colon in its identifier because the set of characters allowed for a
I believe this is why you haven't had any issue with the current way of naming identifiers. It is because most use cases will work just fine. However, whenever using CSS or |
The footnote links in html generated files are broken on some browser like Firefox. The cause of the problem is the colon used in the HREF. In the standard, the RFC3986 says that we cannot use the colon in HREF (section 2.2). The colon is in the reserved characters:
This PR change all the use of the colon (
:) in HREF to the underscore (_).