diff options
author | Xiaocheng Hu <xiaochengh.work@gmail.com> | 2025-04-28 18:56:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-28 10:56:53 +0000 |
commit | 02b38adf43d2cd50f4fc0c2e3a2d7e1ad232219e (patch) | |
tree | a0bb16641bfb808d2e2a6ab34973920ae3b7abf0 /third_party/WebIDL/tests/test_distinguishability.py | |
parent | cf41012257809aa08860a1d4cd231ad585cbe488 (diff) | |
download | servo-main.tar.gz servo-main.zip |
Per [spec](https://dom.spec.whatwg.org/#concept-node-insert), adoption
of new node should be done while inserting the node. This patch moves
the call site of `adopt` to inside `insert` to match it.
It also rewrites some existing code to better match the spec without any
behavioral changes.
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by
`[X]` when the step is complete, and replace `___` with appropriate
data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #___ (GitHub issue number if applicable)
<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because ___
<!-- Also, please make sure that "Allow edits from maintainers" checkbox
is checked, so that we can help you if you get stuck somewhere along the
way.-->
<!-- Pull requests that do not address these steps are welcome, but they
will require additional verification as part of the review process. -->
---------
Signed-off-by: Xiaocheng Hu <xiaochengh.work@gmail.com>
Diffstat (limited to 'third_party/WebIDL/tests/test_distinguishability.py')
0 files changed, 0 insertions, 0 deletions