RESOLVED INVALID 60460
Ian Incorrect parsing of Entity Names in HTML document
https://bugs.webkit.org/show_bug.cgi?id=60460
Summary Incorrect parsing of Entity Names in HTML document
Ian
Reported 2011-05-09 01:21:12 PDT
The syntax of the Entity Names denotes an ending semi-colon as part of the name itself. However, the character is displayed in spite of the lack of the semi-colon, as in the cases of, for example, &amplifier, &regulatory - both would erroneously rendered as if the &amp; and &reg; is present. Note: Safari, Chrome and Internet Explorer 7 show this behavior, while Firefox 3 does not. HTML to test: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> </head> <body> &reg; - Correctly shown the (R) symbol<br/> &amplifier, &regulatory - Incorrectly shown the '&' and (R) symbols, becomes &lifier, (R)ulatory<BR/> </body> </html>
Attachments
Alexey Proskuryakov
Comment 1 2011-05-09 15:50:27 PDT
Behavior of WebKit nightly builds (<http://nightly.webkit.org>) matches html5lib, as well as Firefox 4.
Note You need to log in before you can comment on or make changes to this bug.