[Webkit-unassigned] [Bug 62184] ID registration/unregistration for ShadowRoot

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 7 10:10:38 PDT 2011


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





--- Comment #4 from Dimitri Glazkov (Google) <dglazkov at chromium.org>  2011-06-07 10:10:38 PST ---
(In reply to comment #3)
> In Summary: 
> 
> If an element has an ID it just unconditionally calls treeScope()->registerID() from insertedIntoTree(), and treeScope()->unregisterID() from willRemove().
> 
> Nodes that are not in the Document are inserted into a new TreeScope-derived class DocumentAssociated, of which there is exactly 1 instance per Document, owned by the Document.

I remember you talking about this a while back. It seems like a pretty cool idea. What are the compatibility implications? Any observable changes in behavior - especially if we introduce treeScope() accessor on an Element as public API?

> 
> DocumentAssociated::registerID()/unregisterID() are no-ops.
> 
> With this, we can also get rid of all the instances where inDocument() is queried.

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