commit | 8780c7f72c4b0518a87cc9a08c95c8c997a422d6 | [log] [tgz] |
---|---|---|
author | Jesse Wilson <jessewilson@google.com> | Tue Jan 11 17:52:39 2011 -0800 |
committer | Jesse Wilson <jessewilson@google.com> | Tue Jan 11 17:52:39 2011 -0800 |
tree | ebd917e897c020792b4ed229a2754f5d542f1707 | |
parent | 56d739e6675474c99030f45a5e0df8eae24a6392 [diff] |
Fix Document.getElementsByTagName to return the root node. I introduced this regression when changing Element.getElementsByTagName to not return itself. Note that one of our tests (GetElementsByTagNameNS) had the wrong expectation here; the new result is consistent with the RI. Also fix a related problem in InnerNodeImpl which assumes the document field is always non-null. It can be null for Doctype nodes! Change-Id: I40b5bb52b8396cd282cd5465029a9f0c4040de0c