Skip to content

Commit

Permalink
Update responsexml-basic.htm
Browse files Browse the repository at this point in the history
`resources/well-formed.xml` contains the following:

```html
<html xmlns="http://www.w3.org/1999/xhtml">
  <p id="n&web-platform-tests#49;">1</p>
  <p xmlns="namespacesarejuststrings" id="n2">2</p>
</html>
```

Which looks like it does contain 2 childNodes instead of 5
  • Loading branch information
KiChjang committed Apr 9, 2016
1 parent 5dca49f commit 080f6d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XMLHttpRequest/responsexml-basic.htm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
assert_equals(client.responseXML, null)
client.send(null)
assert_equals(client.responseXML.documentElement.localName, "html", 'localName is html')
assert_equals(client.responseXML.documentElement.childNodes.length, 5, 'childNodes is 5')
assert_equals(client.responseXML.documentElement.childNodes.length, 2, 'childNodes is 2')
assert_equals(client.responseXML.getElementById("n1").localName, client.responseXML.documentElement.childNodes[1].localName)
assert_equals(client.responseXML.getElementById("n2"), null, 'getElementById("n2")')
assert_equals(client.responseXML.getElementsByTagName("p")[1].namespaceURI, "namespacesarejuststrings", 'namespaceURI')
Expand Down

0 comments on commit 080f6d6

Please sign in to comment.