[Webkit-unassigned] [Bug 90341] createAttribute/setAttributeNode does not properly normalize case

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jul 1 11:39:14 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=90341





--- Comment #2 from michael at gurlitz.org  2012-07-01 11:39:14 PST ---
(In reply to comment #1)
> What does HTML5 say?

The DOM spec specifies that, at least setAttribute should override an existing attribute if it has the same name, which presumably should be a case-insensitive comparison (http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/DOM3-Core.html#core-ID-887236154 http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/DOM3-Core.html#core-ID-5DFED1F0-h3), so running the below example on an image with an existing src attribute should update the src.

Note that WebKit parses this properly: <img SRC="a.gif">
img.setAttribute("SRC", "a.gif") works fine as well. I would suggest it's undesired behavior for setAttribute and setAttributeNode to behave differently.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list