[Webkit-unassigned] [Bug 20247] setAttributeNode() does not work when attribute name has a capital letter in it

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 1 02:05:09 PDT 2008


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





------- Comment #3 from ap at webkit.org  2008-08-01 02:05 PDT -------
Created an attachment (id=22595)
 --> (https://bugs.webkit.org/attachment.cgi?id=22595&action=view)
get/set test case

Interesting - looks like in Firefox, Element.setAttributeNode(node) does not
change the case of node's name, but the inserted node has a lowercase name:
        var attrib = document.createAttribute("myAttrib");
        attrib.nodeValue = "XXX";
        getNode().setAttributeNode(attrib);
        alert(getNode().getAttributeNode("myAttrib").name);
        alert(attrib.name);

Also, getAttributeNode is case-insensitive in HTML in Firefox 3.


-- 
Configure bugmail: https://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