Skip to content

Commit

Permalink
Bug 1924955 [wpt PR 48642] - DOM: Make moveBefore() throw for all pre…
Browse files Browse the repository at this point in the history
…-move validity checks, a=testonly

Automatic update from web-platform-tests
DOM: Make moveBefore() throw for all pre-move validity checks (#48642)

This CL makes moveBefore() match the spec PR [1], with regard to the
agreed-upon error-throwing behavior for all pre-moving validity and
hierarchy conditions. This means throwing an exception for:
 - Disconnected parent destination or move target
 - Cross-document Nodes
 - Destination parent that is not an Element node
 - Move target that is not an Element or character data

[1]: whatwg/dom#1307

[email protected]

Bug: 40150299
Change-Id: Iaf5243fb2762e21ede068a222600bd158859fe92
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5935350
Reviewed-by: Noam Rosenthal <[email protected]>
Commit-Queue: Dominic Farolino <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1369303}

Co-authored-by: Dominic Farolino <[email protected]>
--

wpt-commits: 06b6ff6579327f235fff80b0f8bae8b0bbbc1069
wpt-pr: 48642
  • Loading branch information
chromium-wpt-export-bot authored and moz-wptsync-bot committed Oct 22, 2024
1 parent f722c01 commit d09c622
Show file tree
Hide file tree
Showing 5 changed files with 198 additions and 245 deletions.
Loading

0 comments on commit d09c622

Please sign in to comment.