WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
47082
Certain strings text nodes may be incorrectly parsed as a HTML entity
https://bugs.webkit.org/show_bug.cgi?id=47082
Summary
Certain strings text nodes may be incorrectly parsed as a HTML entity
Andy E
Reported
2010-10-04 06:22:10 PDT
I haven't managed to figure out the special circumstances in which this occurs, but I can reproduce it consistently in WebKit nightly, Safari 5 and Chrome 6. A string consisting of an ampersand followed by an HTML entity name, BUT excluding the semi-colon suffix may be incorrectly rendered as the named entity. At the time, I assumed this to be a bug in a Markdown editor and posted the following bug report:
http://meta.stackoverflow.com/questions/66554/html-entities-bug-with-pre-tags-in-markdown-and-webkit
This bug report provides further demonstration of the bug. The simplest form of reproduction is the following HTML: <html> <head></head> <body>&empty</body> </html>
Attachments
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2010-10-04 11:16:27 PDT
Both these examples render in accordance with html5lib in WebKit nightlies for me. Andy, could you please double-check? Note that "correctness" is a somewhat unclear concept here - implicitly closing named entities worked in both WebKit and Mozilla browsers, and it was correct according to SGML and HTML4. It's HTML5 draft spec that suddenly changed the rules.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug