[Webkit-unassigned] [Bug 105713] getAttribute does not behave correctly for mixed-case attributes on HTML elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 19 05:11:22 PST 2013


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





--- Comment #4 from Boris Zbarsky <bzbarsky at mit.edu>  2013-02-19 05:13:44 PST ---
setAttributeNS always preserves the case of the attribute name; that's true in both WebKit and in Gecko.  You can see this trivially by just enumerating the attributes on the given testcase.

This bug is purely about the behavior of getAttribute.  In WebKit the argument to getAttribute is compared case-insensitively to all attribute names; if that fails to find a match further processing is done.  So in WebKit the "FAIL" value is found.

But per spec, the argument to getAttribute should be ASCII-lower-cased before doing any comparisons, so the "PASS" value should be found.

-- 
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