New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update concept of node filter algorithm #18255
Conversation
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @glennw (or someone else) soon. |
components/script/dom/treewalker.rs
Outdated
// "acceptNode", and a list of arguments consisting of node. If that throws an exception, | ||
// then unset the active flag and rethrow the exception." | ||
// "7. Unset the active flag" | ||
// "8. Return result." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why these step annotations are there, we usually just do step n
. @nox?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KiChjang Due to the existing step annotation, I just updated them to the new one. If they're unnecessary, please let me remove them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These seem to be left by a contributor back in #3253, when we did not have guidelines as to how we're supposed to leave step annotations.
So yes, please change them back into step n
instead.
049c2c1
to
777d098
Compare
@bors-servo: try |
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). - [ ] There are tests for these changes OR - [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 -->
💔 Test failed - mac-rel-wpt2 |
@jdm @KiChjang @shinglyu |
Yeah, looks like it. |
⌛ Trying commit 777d098 with merge 57365363463332696f457fac71184afa83fadafe... |
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 -->
Sorry for triggering it two times. I though I had the wrong syntax so asked twice. |
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev |
I bet there are tests upstream that would be affected by this, but we're currently stuck on an old version of web-platform-tests :( |
Hi @jdm , is there anything I can help or update for it? |
#17416 <= this? |
777d098
to
5339123
Compare
☔ The latest upstream changes (presumably #18635) made this pull request unmergeable. Please resolve the merge conflicts. |
f325650
to
f846d87
Compare
☔ The latest upstream changes (presumably #18921) made this pull request unmergeable. Please resolve the merge conflicts. |
3f7139b
to
8245aad
Compare
@bors-servo: try |
@CYBAI: 🔑 Insufficient privileges: and not in try users |
@bors-servo try |
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 -->
@wafflespeanut Thanks! |
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev |
@bors-servo: r+ |
📌 Commit 8245aad has been approved by |
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 -->
@CYBAI Your 2nd commit message is incorrect, you're not removing legacy tests - you're updating test expectations. But instead of renaming it, can I ask you to squash your commits into one, please? |
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev |
@KiChjang Oh... sorry for late reply. This PR has been merged. How can I update them or any way I can help? Thank. |
Implement new filter algorithm from specification
./mach build -d
does not report any errors./mach test-tidy
does not report any errorsThis change is