[Webkit-unassigned] [Bug 104995] New: [Shadow DOM]: ShadowRoot wrong nodeName attribute

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 13 23:46:41 PST 2012


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

           Summary: [Shadow DOM]: ShadowRoot wrong nodeName attribute
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: sgrekhov at unipro.ru


According Shadow DOM specification (https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#shadow-root-attributes) "Accordingly, the nodeName attribute of a ShadowRoot instance must return "#document-fragment".". But in Chrome 23.0.1271.97 m ShadowRoot nodeName is "#shadow-root".

Test:

<html>
<head>
<script>
function test() {
    var SR = window.ShadowRoot ||  window.WebKitShadowRoot;
    var host = document.createElement('div');
    document.body.appendChild(host);
    var s = new SR(host);
    alert(s.nodeName);
}
</script>
</head>
<body onload='test()'>
</body>
</html>

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