[Webkit-unassigned] [Bug 12204] New: HTML parser treats quote as valid char in attributes
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jan 10 14:12:51 PST 2007
http://bugs.webkit.org/show_bug.cgi?id=12204
Summary: HTML parser treats quote as valid char in attributes
Product: WebKit
Version: 420+ (nightly)
Platform: Macintosh
URL: http://software.hixie.ch/utilities/js/live-dom-
viewer/?%3C%21DOCTYPE%20html%3E%3Cbody%20id%22foo%22%3E
OS/Version: Mac OS X 10.4
Status: NEW
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: contact at nickshanks.com
See the example URL for what I mean. In this instance the HTML writer has
forgotten the equals sign. I believe it's pretty clear that the intention was
id="foo" not id"foo"="". In quirks mode, you can just put the = back in. In
strict mode, the attribute should be ignored as invalid, and not appear in the
DOM.
Similarly for single quotes and mixed-up quoting (one of each).
I'm not sure about attribute names, but HTML says of attribute values:
The attribute value may only contain letters (a-z and A-Z), digits (0-9),
hyphens (ASCII decimal 45), periods (ASCII decimal 46), underscores (ASCII
decimal 95), and colons (ASCII decimal 58).
I would contend that the same character set restrictions be applied to
attribute names (unless they are actually defined somewhere).
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list