[Webkit-unassigned] [Bug 105274] New: The style sheets, represented by the shadow nodes are not hidden

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 18 03:12:03 PST 2012


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

           Summary: The style sheets, represented by the shadow nodes are
                    not hidden
           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: a.semenov at unipro.ru


The Shadow DOM Specification reads:

"4.1 Upper-boundary Encapsulation

To maintain the upper-boundary encapsulation, the following scoping constraints must apply to all nodes in a shadow tree:
....
 * The style sheets, represented by the nodes are not accessible using shadow host document's CSSOM extensions"

However in Google Chrome browser version 25.0.1363.0 canary, shadowed style node is accessible via document.styleSeets.

Here is sample code:

<html>
<head>
<script>
function test(){
    var shadowRoot = new window.WebKitShadowRoot(document.head);
    var style = document.createElement('style');
    shadowRoot.appendChild(style);
    document.write('StyleSheets count: ' + document.styleSheets.length + '(expected: 0)');
}
</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