[Webkit-unassigned] [Bug 99232] Content element does not expose distributedNodes property

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 16 21:12:08 PDT 2012


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





--- Comment #7 from Shinya Kawanaka <shinyak at chromium.org>  2012-10-16 21:12:59 PST ---
The current implementation assumes that an element is attached when distributedNode() is called. So it won't work if it's called like:

var sr = new WebKitShadowRoot(host);
var content = document.createElement('content');
sr.appendChild(content);
content.distributedNodes

This will always return null.
It's ok if we use setTimeout like the following:

var sr = new WebKitShadowRoot(host);
var content = document.createElement('content');
sr.appendChild(content);
setTimeout(function()
    content.distributedNodes
}, 0)

Maybe we have to call ensureDistribution() when distributedNodes is called. We also have to ensure distribution for younger shadows and so on.

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