[Webkit-unassigned] [Bug 89172] New: [Shadow] parentTreeScope() of nested shadow DOM subtree returns document().
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jun 14 22:51:26 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=89172
Summary: [Shadow] parentTreeScope() of nested shadow DOM
subtree returns document().
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: tasak at google.com
<body>
<div id="test">
</div>
<script>
var div = document.getElementById("test");
var shadow1 = new WebKitShadowRoot(div);
shadow1.innerHTML = "<div id='E'></div>";
var e = shadow1.getElementById("E");
var shadow2 = new WebKitShadowRoot(e);
shadow2.innerHTML = "<div id='F'></div>";
var f = shadow2.getElementById("F");
var shadow3 = new WebKitShadowRoot(f);
shadow3.innerHTML = "<div id='G'></div>";
</script>
</body>
The shadow1, shadow2, and shadow3's parentTreeScope() are the same as document(). If creating the same DOM tree by using the following script, parentTreeScope() returns correct parent tree scope.
<script>
var f = document.createElement("div");
var shadow3 = new WebKitShadowRoot(f);
shadow3.innerHTML = "<div id='G'></div>";
var e = document.createElement("div");
var shadow2 = new WebKitShadowRoot(e);
shadow2.appendChild(f);
var test = document.getElementById("test");
var shadow1 = new WebKitShadowRoot(test);
shadow1.appendChild(e);
</script>
--
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