-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Implement and test DOMTokenList.replace (fixes #8511) #9353
Conversation
This is a WIP: |
I know it's a WIP, but a couple suggestions if you weren't already going to do them:
|
There is no run_update_steps because the associated attribute's value is actually the only storage for their list of tokens. We already do this. |
☔ The latest upstream changes (presumably #9605) made this pull request unmergeable. Please resolve the merge conflicts. |
@nox What's the status here? Is this still classified a WIP and needs more work, or should @asajeffrey be reviewing it? |
I'll look at it tonight or tomorrow while rebasing it. |
I've been holding off while it has conflicts, let me know when you're ready. |
b1f5276
to
636c0fc
Compare
@asajeffrey This is ok to go. |
Mostly this looks fine, there's a spec issue plus a couple of extra tests I think we should add, but otherwise cool Reviewed 4 of 4 files at r1. components/script/dom/domtokenlist.rs, line 135 [r1] (raw file): tests/wpt/web-platform-tests/dom/nodes/Element-classlist.html, line 84 [r1] (raw file):
tests/wpt/web-platform-tests/dom/nodes/Element-classlist.html, line 263 [r1] (raw file):
Comments from the review on Reviewable.io |
I think |
That's an other kind of SyntaxError |
☔ The latest upstream changes (presumably #9763) made this pull request unmergeable. Please resolve the merge conflicts. |
@nox: is this PR still open? |
It is still open, still blocked, still didn't address it, I'll try to do it soon. |
636c0fc
to
d848645
Compare
@asajeffrey Ready to go. |
Okay, I'll take a look later today. |
Reviewed 4 of 4 files at r2. components/script/dom/domtokenlist.rs, line 142 [r2] (raw file): Comments from the review on Reviewable.io |
d848645
to
d010df9
Compare
Done. r? Review status: 3 of 4 files reviewed at latest revision, 4 unresolved discussions. components/script/dom/domtokenlist.rs, line 135 [r1] (raw file): components/script/dom/domtokenlist.rs, line 142 [r2] (raw file): tests/wpt/web-platform-tests/dom/nodes/Element-classlist.html, line 84 [r1] (raw file): tests/wpt/web-platform-tests/dom/nodes/Element-classlist.html, line 263 [r1] (raw file): Comments from the review on Reviewable.io |
Reviewed 1 of 1 files at r3. Comments from the review on Reviewable.io |
@bors-servo r+ |
📌 Commit d010df9 has been approved by |
Implement and test DOMTokenList.replace (fixes #8511) Thanks to @sankha93 for the original work in #8525. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9353) <!-- Reviewable:end -->
💔 Test failed - linux-rel |
⚡ Previous build results for android, arm32, gonk, linux-dev, mac-dev-unit, mac-rel-css, mac-rel-wpt, status-appveyor are reusable. Rebuilding only linux-rel... |
☀️ Test successful - android, arm32, gonk, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, status-appveyor |
Thanks to @sankha93 for the original work in #8525.