Commit 379280a4 authored by Jesse Wilson's avatar Jesse Wilson
Browse files

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
parent 677b0cb9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment