[whatwg] Proposal: Adding methods like getElementById and getElementsByTagName to DocumentFragments

Bjoern Hoehrmann derhoermi at gmx.net
Thu Oct 31 07:14:52 PDT 2013

* Anne van Kesteren wrote:
>I also filed some browser bugs just in case people are not paying
>attention here:
>* https://bugzilla.mozilla.org/show_bug.cgi?id=933193
>* http://code.google.com/p/chromium/issues/detail?id=313655
>* https://bugs.webkit.org/show_bug.cgi?id=123565
>Should really have a way to file a bug on all browsers whenever
>something like this comes up...

What we should have is proper automated test suites that let us know
what web browsers do and do not implement. Creating rudimentary tests
for the relevant cases here probably takes less effort in addition to
being far more valuable than filing the bug reports. I tested with
and that seems to confirm my suspicion, even if we ignore that such a
test can be automatically derived from the interface description. All
I did was appending

  // SVGSVGElement.prototype.getElementById is defined
  return !!SVGSVGElement.prototype.getElementById;

to a text file.
Björn Höhrmann · mailto:bjoern at hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

More information about the whatwg mailing list