Re: [whatwg/dom] Node.prototype.rootNode is not Web compatible (#241)

I just came back from a vacation. Sorry for the late reply. I do not have any strong opinion about a new name.

It looks we have a dilemma: :(
- It we choose a good name, the name is likely to be used in the wild.
- If we choose a bad name, the name is unlikely to be used in the wild.

BTW, "property vs method" is the first thing we have to choose. If we are to use a method, I'm +1 for `getRootNode()`.

I think most UAs can return getRootNode() in O(1) if the node is in a document tree or a shadow tree, but it might take O(N) if the node is in neither of them. Thus, a method might make sense, IMO.


---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/241#issuecomment-217780351

Received on Monday, 9 May 2016 06:14:59 UTC