W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2012

Support getElementById and other methods of ShadowRoot on DocumentFragment

From: Elliott Sprehn <esprehn@gmail.com>
Date: Fri, 29 Jun 2012 11:03:28 -0700
Message-ID: <CAPJYB1iudinx30gRREc-WEF0ytoSt2=QRyvHAE=hUhEQdNQ1MQ@mail.gmail.com>
To: www-dom <www-dom@w3.org>
DocumentFragment has querySelector and friends, but doesn't have
getElementById or getElementByClass etc. Because of this the methods were
explicitly added to ShadowRoot which seems kind of silly. There's also
innerHTML on ShadowRoot but not on DocumentFragment.


Could we get these methods added to DocumentFragment instead?

 HTMLElement getElementById(in DOMString elementId);
 NodeList getElementsByClassName(in DOMString tagName);
 NodeList getElementsByTagName(in DOMString className);
 NodeList getElementsByTagNameNS(DOMString namespace, DOMString localName);
 attribute DOMString innerHTML;

- Elliott
Received on Friday, 29 June 2012 18:04:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:00 UTC