Skip to content

Commit

Permalink
Bug 1936153 [wpt PR 49603] - DOM: Enable moveBefore() into Document n…
Browse files Browse the repository at this point in the history
…odes, a=testonly

Automatic update from web-platform-tests
DOM: Enable moveBefore() into Document nodes

See
whatwg/dom#1307 (review).

R=nrosenthalchromium.org

Bug: 40150299
Change-Id: I01b148f65c9e9c2545e7287ae38eb0e39f57d3d3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6081493
Commit-Queue: Dominic Farolino <domchromium.org>
Reviewed-by: Noam Rosenthal <nrosenthalchromium.org>
Cr-Commit-Position: refs/heads/main{#1394297}

--

wpt-commits: 64e219541d6cf8165e11c2625bba82381044075f
wpt-pr: 49603

UltraBlame original commit: d964e73cee7b89a9e21d8d4ccb3ffb0a8b5ac913
  • Loading branch information
marco-c committed Dec 16, 2024
1 parent 88ab46e commit 995c986
Showing 1 changed file with 120 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1008,17 +1008,20 @@
parent
is
not
an
a
Document
DocumentFragment
or
Element
node
then
throw
a
/
/
"
HierarchyRequestError
"
/
/
DOMException
.
"
Expand Down Expand Up @@ -1131,11 +1134,40 @@
case
when
moving
a
node
into
an
Element
directly
under
the
/
/
document
.
This
is
not
moveBefore
(
)
-
specific
behavior
;
it
is
consistent
/
/
with
traditional
Document
insertion
rules
just
like
insertBefore
(
)
.
iframe
.
Expand Down Expand Up @@ -1171,6 +1203,88 @@
>
{
const
iframe
=
document
.
body
.
appendChild
(
document
.
createElement
(
'
iframe
'
)
)
;
const
comment
=
iframe
.
contentDocument
.
createComment
(
"
comment
"
)
;
iframe
.
contentDocument
.
body
.
append
(
comment
)
;
iframe
.
contentDocument
.
moveBefore
(
comment
null
)
;
assert_equals
(
comment
.
parentNode
iframe
.
contentDocument
)
;
}
"
moveBefore
(
)
CharacterData
into
a
Document
"
)
;
test
(
t
=
>
{
const
comment
=
document
Expand Down

0 comments on commit 995c986

Please sign in to comment.