[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
Fri Feb 22 06:22:25 PST 2013


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





--- Comment #7 from Arpita Bahuguna <arpitabahuguna at gmail.com>  2013-02-22 06:24:47 PST ---
As I see it, there are two issues with the usage of getAttribute() and getAttributeNode() APIs in WebKit:

1. As exemplified by the given testcase, getAttribute() (and getAttributeNode()) should convert its argument to lowercase before comparing against existing attributes. This is as per the specification as well.

2. Say we have an existing attribute, stored via setAttributeNS(), in uppercase. getAttribute() (and getAttributeNode()) API will however still return the existing attribute even while comparing using lowercase.
This is what causes the testcases specified in http://w3c-test.org/webapps/DOMCore/tests/submissions/Ms2ger/attributes.html for getAttribute() to fail.

I shall try and address issue 1. in this bug and open another bug for the second issue.

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