Intent to Ship: Node.rootNode

92 views
Skip to first unread message

Yuzu Saijo

unread,
Mar 9, 2016, 1:07:35 AM3/9/16
to blin...@chromium.org

Contact emails

yu...@chromium.org, yu...@google.com


Spec

dom.spec.whatwg.org/#dom-node-rootnode

https://github.com/w3c/webcomponents/issues/80


Summary

Node.rootNode calculates a root or shadowroot of a given node. This formalizes the way that nodes figure out its root/shadowroot. This feature used to be called Node.treeRoot but it was decided to be renamed to Node.rootNode.


Link to “Intent to Implement” blink-dev discussion

This feature is one part of ShadowDOM v1, but can be shipped individually in response to requests from web developers.

https://groups.google.com/a/chromium.org/forum/#!searchin/blink-dev/intent$20to$20implement$20shadow$20dom$20v1/blink-dev/Ez2cuT0KmQo/eUpSsU-uAgAJ


Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

Yes.


Interoperability and Compatibility Risk

This is a brand new feature so there is no risk of compatibility.
As for interoperability, Webkit already implemented it. 

Philip Jägenstedt

unread,
Mar 9, 2016, 5:32:46 AM3/9/16
to Yuzu Saijo, blink-dev
LGTM1

The rename from treeRoot to roteNode is in progress in WebKit:

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.

Rick Byers

unread,
Mar 9, 2016, 1:41:04 PM3/9/16
to Philip Jägenstedt, Yuzu Saijo, blink-dev
LGTM2

TAMURA, Kent

unread,
Mar 9, 2016, 6:52:20 PM3/9/16
to Rick Byers, Philip Jägenstedt, Yuzu Saijo, blink-dev
LGTM3

--
TAMURA Kent
Software Engineer, Google


Dimitri Glazkov

unread,
May 4, 2016, 2:15:23 PM5/4/16
to TAMURA, Kent, Rick Byers, Philip Jägenstedt, Yuzu Saijo, blink-dev
BTW, it looks like Dojo sets .rootNode on an element, which raises the question whether the rootNode name is Web-compatible: 



:DG<

Elliott Sprehn

unread,
May 4, 2016, 4:06:04 PM5/4/16
to Dimitri Glazkov, Kent TAMURA, Philip Jägenstedt, Rick Byers, blink-dev, Yuzu Saijo

This had caused other regressions as well, I think we need to revert and choose another name.

Dimitri Glazkov

unread,
May 4, 2016, 11:58:47 PM5/4/16
to Elliott Sprehn, Kent TAMURA, Philip Jägenstedt, Rick Byers, blink-dev, Yuzu Saijo

Hayato Ito

unread,
May 9, 2016, 4:46:13 AM5/9/16
to Dimitri Glazkov, Elliott Sprehn, Kent TAMURA, Philip Jägenstedt, Rick Byers, blink-dev, Yuzu Saijo
Regarding a new name, the discussion is on going in https://github.com/whatwg/dom/issues/241.
Reply all
Reply to author
Forward
0 new messages