[Bug 27569] New: Move getElementsBy* to ParentNode?

[email protected]
Newsgroups gmane.comp.web.dom.general
Message-ID <[email protected]/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=27569

            Bug ID: 27569
           Summary: Move getElementsBy* to ParentNode?
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DOM
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected]

https://dom.spec.whatwg.org/#interface-document

In the spec getElementsByTagName, getElementsByTagNameNS and
getElementsByClassName are on Document and Element separately.

They're also on ShadowRoot, which inherits from DocumentFragment:
http://w3c.github.io/webcomponents/spec/shadow/#shadowroot-object

Putting it on ParentNode seems like a simplification, and that's also where
querySelector and querySelectorAll live.

The observable difference would be that getElementsBy* become usable on
non-ShadowRoot DocumentFragments.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.