[whatwg/dom] get rid of NonElementParentNode? (#298)

What is the reason this was introduced?

`element.getElementById("elm")` would be different from `document.getElementById("elm")` as you know, as the former matches "#elm" only if descendant of `element`. Isn't adding this mixin a bit overkill? Isn't it simpler to add `Element.getElementById()` as well?

To put it another way, `element.query("#elm")` is allowed, why so much effort into disallowing `element.getElementById("elm")`?

Forgive me if I said something dumb :P I'm doing my best to understand the new dom spec.
Thank you in advance.

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

Received on Tuesday, 16 August 2016 14:14:27 UTC