mathiasbynens / he

A robust HTML entity encoder/decoder written in JavaScript.
https://mths.be/he
MIT License
3.45k stars 254 forks source link

Section 12.2.4.69 of the HTML spec, referenced in README.md, does not exist #77

Open stephenmirving opened 4 years ago

stephenmirving commented 4 years ago

There is an issue with the reference to the HTML spec in README.md in the following part:

This function takes a string of HTML and decodes any named and numerical character references in it using the algorithm described in section 12.2.4.69 of the HTML spec.

This link I assumed would take me to section 12.2.4.69. Instead the link takes me to section 12.1 of the HTML Spec. However, if you follow a link on that page it will take you to section 12.2. Unfortunately, once you are in that section it becomes apparent that there is no section 12.2.4.69 of the HTML spec as it exists today, as section 12.2.4 ends with section 12.2.4.5. There is a section 12.2.5.69 but that does not contain any relevant algorithm.

The reference to the HTML spec should either be fixed and changed to the correct section with the link fixed to go to that section, or it should be removed entirely.

ticky commented 4 years ago

Given it’s a living standard, the structure of the document has since changed. The referenced passage as of 2014 can be found here. Current information is at https://html.spec.whatwg.org/multipage/parsing.html#tokenization