Bug 60460 (Ian)
Summary: | Incorrect parsing of Entity Names in HTML document | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ian <yingchungchan> |
Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Major | CC: | ap |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Ian
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, &lifier, ®ulatory - both would erroneously rendered as if the & and ® 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>
® - Correctly shown the (R) symbol<br/>
&lifier, ®ulatory - Incorrectly shown the '&' and (R) symbols, becomes &lifier, (R)ulatory<BR/>
</body>
</html>
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
Behavior of WebKit nightly builds (<http://nightly.webkit.org>) matches html5lib, as well as Firefox 4.