Auto merge of #18255 - CYBAI:prevent-reentrancy-pr18218, r=jdm

Update concept of node filter algorithm

Implement new [filter](https://dom.spec.whatwg.org/#concept-node-filter) algorithm from specification

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #18218 (github issue number if applicable).
- [X] These changes do not require tests because changes are minimal and the error was triggered by a test

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18255)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-10-21 15:13:04 -05:00 committed by GitHub
commit 1667fcc16d
4 changed files with 44 additions and 27 deletions

View file

@ -1,5 +0,0 @@
[NodeIterator.html]
type: testharness
[Recursive filters need to throw]
expected: FAIL

View file

@ -1,5 +0,0 @@
[TreeWalker.html]
type: testharness
[Recursive filters need to throw]
expected: FAIL