github web-platform-tests/wpt merge_pr_48642

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
11 months ago

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

R=nrosenthal@chromium.org

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

Co-authored-by: Dominic Farolino dom@chromium.org

Don't miss a new wpt release

NewReleases is sending notifications on new releases.