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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jun 30 15:43:37 PDT 2012


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

           Summary: createAttribute/setAttributeNode does not properly
                    normalize case
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.7
            Status: UNCONFIRMED
          Severity: Minor
          Priority: P2
         Component: WebCore JavaScript
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: michael at gurlitz.org


Online documents indicate that createAttribute should be case-insensitive in HTML documents (http://help.dottoro.com/ljiclkfc.php http://docs.oracle.com/javase/1.5.0/docs/api/org/w3c/dom/Document.html#createAttribute(java.lang.String)): "The name is case-sensitive in XML documents and case-insensitive in HTML documents."

This example Javascript code will fail to properly set the image src.
var img = document.getElementById("img");
var img_src = document.createAttribute("SRC");
img_src.value = "image.gif";
img.setAttributeNode(img_src);

Changing the createAttribute argument to "src" works properly.
Specifically, this behavior is exhibited in the program "anyterm." Fails in Google Chrome and latest WebKit, works in Firefox.

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