[dom] getElementsByTagName needs to be clearer on when the same object can or can't be returned

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[dom] getElementsByTagName needs to be clearer on when the same object can or can't be returned

r12a via GitHub
bzbarsky has just created a new issue for
https://github.com/whatwg/dom:

== getElementsByTagName needs to be clearer on when the same object
can or can't be returned ==
In particular, it looks to me like at call-time the
`getElementsByTagName` call captures the HTML-ness of _root_'s node
document at the time it's called.  So if that HTML-ness changes, a new
 object needs to be returned.

I put a testcase at
http://web.mit.edu/bzbarsky/www/testcases/dom-queries/test_getElementsByTagName_1.html
 which tries to exercise some of the edge-cases here.

See https://github.com/whatwg/dom/issues/90