[dom] Fix NodeIterator removing step (#24)

https://dom.spec.whatwg.org/#interface-nodeiterator

> 4\. If __next__ __is not__ an inclusive ancestor of __root__, set the referenceNode attribute to next and terminate these steps. 

This should be:

> 4\. If __root__ __is__ an inclusive ancestor of __next__, set the referenceNode attribute to next and terminate these steps. 

Otherwise you will end up with the following node of the iterator's `root`. Firefox and Chrome seem to behave in line with this fix.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/dom/pull/24

-- Commit Summary --

  * Fix NodeIterator removing step

-- File Changes --

    M dom.bs (4)

-- Patch Links --

https://github.com/whatwg/dom/pull/24.patch
https://github.com/whatwg/dom/pull/24.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/24

Received on Sunday, 19 April 2015 14:38:40 UTC