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

* 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
http://shadowregistry.org/js/misc/#t6edb2a2b01f100f64f8f372bd3826328
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@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/ 

Received on Thursday, 31 October 2013 14:15:21 UTC