Skip to content
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

DOM: add some CDATASection coverage #44432

Merged
merged 3 commits into from
Feb 9, 2024
Merged

DOM: add some CDATASection coverage #44432

merged 3 commits into from
Feb 9, 2024

Conversation

annevk
Copy link
Member

@annevk annevk commented Feb 7, 2024

No description provided.

webkit-commit-queue pushed a commit to annevk/WebKit that referenced this pull request Feb 9, 2024
https://bugs.webkit.org/show_bug.cgi?id=268903

Reviewed by Ryosuke Niwa.

When the DOM Standard talks about Text nodes it is inclusive of
CDATASection nodes, e.g.,
https://dom.spec.whatwg.org/#concept-range-insert

Test changes are exported via:
web-platform-tests/wpt#44432

* LayoutTests/imported/w3c/web-platform-tests/dom/common.js:
(setupRangeTests):
(nodeLength):
(myExtractContents):
(myInsertNode):
(isText):
(ensurePreInsertionValidity):
* LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-compareDocumentPosition-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-contains-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-properties-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-properties.html:
* LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-cloneContents-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-cloneContents.html:
* LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-cloneRange-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-collapse-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-commonAncestorContainer-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-compareBoundaryPoints-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-comparePoint-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-deleteContents-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-deleteContents.html:
* LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-extractContents-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-insertNode-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-intersectsNode-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-isPointInRange-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-selectNode-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-set-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-surroundContents-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/dom/ranges/Range-surroundContents.html:
* LayoutTests/imported/w3c/web-platform-tests/dom/traversal/NodeIterator-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/dom/traversal/NodeIterator-removal-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/dom/traversal/TreeWalker-expected.txt:
* Source/WebCore/dom/Range.cpp:
(WebCore::Range::insertNode):
(WebCore::Range::surroundContents):

Canonical link: https://commits.webkit.org/274346@main
@annevk annevk enabled auto-merge (squash) February 9, 2024 07:31
@annevk annevk merged commit 913ef86 into master Feb 9, 2024
19 checks passed
@annevk annevk deleted the annevk/CDATA branch February 9, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants