- From: <bugzilla@jessica.w3.org>
- Date: Tue, 23 Aug 2016 12:26:05 +0000
- To: public-webapps-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=28107 --- Comment #10 from Arkadiusz Michalski (Spirit) <crimsteam@gmail.com> --- I mean sth like this: 1. Let /node/ and /currentNode/ be the value of the currentNode attribute. For testing "following node" we can also use loop, but it's a bit longer than prose (replace all starting with 3.2 - after first loop): 2. Let /candidateNode/ and /matchedNode/ be null. 3. While /matchedNode/ is null and there is a node that is following /node/ then run these subsubsteps: 3.1. Set /candidateNode/ to that following node. 3.2. If /currentNode/ is not a descendant of root then set /node/ and /matchedNode/ to the /candidateNode/. 3.3. Otherwise, if /candidateNode/ is descendant of root then set /node/ and /matchedNode/ to the /candidateNode/. 3.4. Otherwise, set /node/ to the /candidateNode/. 4. If matchedNode is null then return null. 5. Filter /node/ and set /result/ to the return value. 6. If /result/ is FILTER_ACCEPT, then set the currentNode attribute to /node/ and return /node/. 7. Run these substeps again. -- You are receiving this mail because: You are the QA Contact for the bug.
Received on Tuesday, 23 August 2016 12:26:13 UTC