[Bug 28107] TreeWalker nextNode never ascends the tree

https://www.w3.org/Bugs/Public/show_bug.cgi?id=28107

--- Comment #7 from Anne <annevk@annevk.nl> ---
Something like this perhaps:

===
If currentNode is a descendant of root, a node is following /node/, and /node/
is a descendant of root, then set /node/ to the first node following /node/.

Otherwise, if currentNode is not a descendant of root, a node is following
/node/, and /node is not a descendant of root, then set /node to the first node
following /node/.

Otherwise, return null.
===

Not sure if that can be shortened in prose.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 23 August 2016 08:01:37 UTC