Summary: | HTML parser treats quote as valid char in attributes | ||
---|---|---|---|
Product: | WebKit | Reporter: | Nicholas Shanks <nickshanks> |
Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WONTFIX | ||
Severity: | Normal | CC: | abarth, bugs-webkit |
Priority: | P2 | ||
Version: | 420+ | ||
Hardware: | Mac | ||
OS: | OS X 10.4 | ||
URL: | http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E%3Cbody%20id%22foo%22%3E |
Description
Nicholas Shanks
2007-01-10 14:12:50 PST
HTML5 says that <body id"foo"> should result in an element <body> with an attribute called |id"foo"| and an empty value. IMHO this bug is INVALID. http://whatwg.org/specs/web-apps/current-work/#tokenisation Ian: I hadn't looked at the HTML5 specs in this regard. But what about when parsing html ≤ 4 in quirks mode? We want the fewest differences possible. The idea of the HTML5 parser spec is that it also apply in quirks mode. (There are a couple of things that still need doing before it's fully done, but attribute parsing isn't one of them.) Unless IE6 does something different, we should do what the spec says. And if IE6 does do something different, then the spec should probably change to match. Our behavior matches the HTML5 spec. |