[wpt-sync] Sync PR 62174 - Test parser element insertion when a custom element reaction reparents nodes
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox156 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 62174 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/62174
Details from upstream follow.
Anne van Kesteren <annevk@annevk.nl> wrote:
Test parser element insertion when a custom element reaction reparents nodes
The custom element constructor, and attributeChangedCallback for the token's
attributes, both run while creating an element for the token, before the element
is inserted. They can give the element a parent, detach the intended parent, or
move the intended parent inside the element.See https://github.com/whatwg/html/issues/12494 for context.
| Assignee | ||
Updated•3 months ago
|
| Assignee | ||
Comment 1•3 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=39de795e1463c59e9df7a9d82d4f0133fc587388
| Assignee | ||
Comment 2•3 months ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 249 tests and 14 subtests
Status Summary
Firefox
OK : 3[GitHub] 235[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 6[GitHub] 11[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 8001[Gecko-android-em-14-x86_64-lite-opt-geckoview] 8012[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
CRASH: 1
FAIL : 2[GitHub] 298[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
Chrome
OK : 3
PASS : 6
CRASH: 1
FAIL : 2
Safari
OK : 3
PASS : 7
FAIL : 1
ERROR: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
Crashes
New Tests That Don't Pass
- /html/syntax/parsing/DOMContentLoaded-defer.html [wpt.fyi]:
SKIP - /html/syntax/parsing/adoption-agency-reparenting-shadow-cycle.html [wpt.fyi]:
SKIP - /html/semantics/scripting-1/the-template-element/template-element/node-document-changes.html [wpt.fyi]
- Changing of template element's node document. Test that ownerDocument of an empty template and its content changes:
FAIL - Changing of template element's node document. Test that ownerDocument of a not empty template and its content changes:
FAIL - Changing of template element's node document. Test that ownerDocument of nested template and its content changes:
FAIL - Changing of template element's node document. Test document loaded from a file:
FAIL - Changing of template element's node document. Test the case when both old and new owner documents of template element have browsing context:
FAIL
- Changing of template element's node document. Test that ownerDocument of an empty template and its content changes:
- /html/syntax/parsing/adoption-agency-reparenting-document-target.html [wpt.fyi]
- Adoption agency foster target is a Document that already has an element child:
FAIL
- Adoption agency foster target is a Document that already has an element child:
- /html/syntax/parsing/adoption-agency-reparenting-template-cycle.html [wpt.fyi]
- Adoption agency move that would create a host-including cycle via template contents:
FAIL
- Adoption agency move that would create a host-including cycle via template contents:
- /html/syntax/parsing/custom-element-reparenting-shadow-cycle.html [wpt.fyi]:
CRASH(Chrome:CRASH, Safari:ERROR) - /html/syntax/parsing/custom-element-reparenting-template-cycle.html [wpt.fyi]
- Custom element constructor moves the intended parent into a template element's contents:
FAIL(Chrome:FAIL, Safari:FAIL)
- Custom element constructor moves the intended parent into a template element's contents:
- /html/syntax/parsing/custom-element-reparenting.html [wpt.fyi]
- attributeChangedCallback gives the element a parent before it is inserted:
FAIL(Chrome:FAIL, Safari:PASS)
- attributeChangedCallback gives the element a parent before it is inserted:
- /html/syntax/parsing/doctype-system-identifier-distinction.html [wpt.fyi]
- DOCTYPE with "-//W3C//DTD HTML 4.01 Frameset//" and empty system ID triggers quirks mode:
FAIL - DOCTYPE with "-//W3C//DTD HTML 4.01 Transitional//" and empty system ID triggers quirks mode:
FAIL
- DOCTYPE with "-//W3C//DTD HTML 4.01 Frameset//" and empty system ID triggers quirks mode:
- /html/syntax/parsing/foster-parenting-into-document-with-element-child.html [wpt.fyi]
- A foster-parented element whose adjusted insertion location is another Document that already has an element child is dropped on the floor:
FAIL
- A foster-parented element whose adjusted insertion location is another Document that already has an element child is dropped on the floor:
- /html/syntax/parsing/html5lib_url.html?file=tests1 [wpt.fyi]
- <?:
FAIL - <?COMMENT?>:
FAIL - <?COM--MENT?>:
FAIL
- <?:
- /html/syntax/parsing/html5lib_url.html?file=processing-instructions [wpt.fyi]
- <body><?something>:
FAIL - <body><?something><span>:
FAIL - <body><?something good>:
FAIL - <body><?something else is good>:
FAIL - <body><?one><?two>:
FAIL - <body><?a$><?b$><?good?>:
FAIL - <body><?hey there?>:
FAIL - <body><?hey there?>:
FAIL - <body><?hey?there>:
FAIL - <body><?hey\tthere=1?>:
FAIL - <body><?hey\nthere=1?>:
FAIL - <body><?hey\rthere=1?>:
FAIL - <body><?hey\x0cthere=1?>:
FAIL - <body><?something ? >:
FAIL - <body><?something x >:
FAIL - <body><?something ?\t ??>:
FAIL - <body><?t d > ?>:
FAIL - <body><?module-handler>:
FAIL - <body><?module-handler data>:
FAIL - <body><?view-port>:
FAIL - <body><?view-port data>:
FAIL - <body><?config-v2>:
FAIL - <body><?config-v2 data>:
FAIL - <body><?x>:
FAIL - <body><?x data>:
FAIL - <body><?zz2op>:
FAIL - <body><?zz2op data>:
FAIL - <body><?xla->:
FAIL - <body><?xla- data>:
FAIL - <body><?a-b-c>:
FAIL - <body><?a-b-c data>:
FAIL - <body><?v-123>:
FAIL - <body><?v-123 data>:
FAIL - <body><?a0-b1-c2>:
FAIL - <body><?a0-b1-c2 data>:
FAIL - <body><?page-404>:
FAIL - <body><?page-404 data>:
FAIL - <body><?r2-d2>:
FAIL - <body><?r2-d2 data>:
FAIL - <body><?level-99>:
FAIL - <body><?level-99 data>:
FAIL - <body><?UPPERCASE>:
FAIL - <body><?UPPERCASE data>:
FAIL - <body><?all-KINDS-of-CaSeS>:
FAIL - <body><?all-KINDS-of-CaSeS data>:
FAIL - <body><?user_name>:
FAIL - <body><?user_name data>:
FAIL - <body><?S_S-S_S>:
FAIL - <body><?S_S-S_S data>:
FAIL - <body><?b_>:
FAIL - <body><?b_ data>:
FAIL - <body><?_prefix>:
FAIL - <body><?_prefix data>:
FAIL - <body><?_x132>:
FAIL - <body><?_x132 data>:
FAIL - <body><?->:
FAIL - <body><?- data>:
FAIL - <body><?_>:
FAIL - <body><?_ data>:
FAIL - <body><?A---------------->:
FAIL - <body><?A---------------- data>:
FAIL - <body><?z0123456789>:
FAIL - <body><?z0123456789 data>:
FAIL - <body><?m-0>:
FAIL - <body><?m-0 data>:
FAIL - <body><?start:
FAIL - <body><?start?:
FAIL - <body><?start :
FAIL - <body><?start data:
FAIL - <body><?start ? ?:
FAIL - <body><?:
FAIL - <div><?something></div>:
FAIL - <div><?something good></div>:
FAIL - <table><?something></table>:
FAIL - <table><tr><?something></tr></table>:
FAIL - <?something>:
FAIL - <head><?something>:
FAIL - <html><?something><head>:
FAIL - <html><head></head><?something><body>:
FAIL - <html><body></body><?something>:
FAIL - <html><body></body></html><?something>:
FAIL - <body><template><?something></template>:
FAIL - <template><?pi>:
FAIL
- <body><?something>:
- /html/syntax/parsing/html5lib_url.html?file=webkit02 [wpt.fyi]
- <select><button><selectedcontent></button><option>X:
FAIL - <select><button><selectedcontent></button><option>x<i>i<b>ib</i>b:
FAIL - <select><button><selectedcontent></button><option>X<option>Y:
FAIL - <select><button><selectedcontent></button><option>X<option selected>Y:
FAIL
- <select><button><selectedcontent></button><option>X:
- /html/syntax/parsing/html5lib_url.html?file=adoption02 [wpt.fyi]
- <nobr><table><marquee></table><nobr>:
FAIL
- <nobr><table><marquee></table><nobr>:
- /html/syntax/parsing/html5lib_url.html?file=html5test-com [wpt.fyi]
- <?import namespace="foo" implementation="#bar">:
FAIL
- <?import namespace="foo" implementation="#bar">:
- /html/syntax/parsing/html5lib_write.html?file=adoption02 [wpt.fyi]
- <nobr><table><marquee></table><nobr>:
FAIL
- <nobr><table><marquee></table><nobr>:
- /html/syntax/parsing/html5lib_write.html?file=webkit02 [wpt.fyi]
- <select><button><selectedcontent></button><option>X:
FAIL - <select><button><selectedcontent></button><option>x<i>i<b>ib</i>b:
FAIL - <select><button><selectedcontent></button><option>X<option>Y:
FAIL - <select><button><selectedcontent></button><option>X<option selected>Y:
FAIL
- <select><button><selectedcontent></button><option>X:
- /html/syntax/parsing/html5lib_write.html?file=processing-instructions [wpt.fyi]
- <body><?something>:
FAIL - <body><?something><span>:
FAIL - <body><?something good>:
FAIL - <body><?something else is good>:
FAIL - <body><?one><?two>:
FAIL - <body><?a$><?b$><?good?>:
FAIL - <body><?hey there?>:
FAIL - <body><?hey there?>:
FAIL - <body><?hey?there>:
FAIL - <body><?hey\tthere=1?>:
FAIL - <body><?hey\nthere=1?>:
FAIL - <body><?hey\rthere=1?>:
FAIL - <body><?hey\x0cthere=1?>:
FAIL - <body><?something ? >:
FAIL - <body><?something x >:
FAIL - <body><?something ?\t ??>:
FAIL - <body><?t d > ?>:
FAIL - <body><?module-handler>:
FAIL - <body><?module-handler data>:
FAIL - <body><?view-port>:
FAIL - <body><?view-port data>:
FAIL - <body><?config-v2>:
FAIL - <body><?config-v2 data>:
FAIL - <body><?x>:
FAIL - <body><?x data>:
FAIL - <body><?zz2op>:
FAIL - <body><?zz2op data>:
FAIL - <body><?xla->:
FAIL - <body><?xla- data>:
FAIL - <body><?a-b-c>:
FAIL - <body><?a-b-c data>:
FAIL - <body><?v-123>:
FAIL - <body><?v-123 data>:
FAIL - <body><?a0-b1-c2>:
FAIL - <body><?a0-b1-c2 data>:
FAIL - <body><?page-404>:
FAIL - <body><?page-404 data>:
FAIL - <body><?r2-d2>:
FAIL - <body><?r2-d2 data>:
FAIL - <body><?level-99>:
FAIL - <body><?level-99 data>:
FAIL - <body><?UPPERCASE>:
FAIL - <body><?UPPERCASE data>:
FAIL - <body><?all-KINDS-of-CaSeS>:
FAIL - <body><?all-KINDS-of-CaSeS data>:
FAIL - <body><?user_name>:
FAIL - <body><?user_name data>:
FAIL - <body><?S_S-S_S>:
FAIL - <body><?S_S-S_S data>:
FAIL - <body><?b_>:
FAIL - <body><?b_ data>:
FAIL - <body><?_prefix>:
FAIL - <body><?_prefix data>:
FAIL - <body><?_x132>:
FAIL - <body><?_x132 data>:
FAIL - <body><?->:
FAIL - <body><?- data>:
FAIL - <body><?_>:
FAIL - <body><?_ data>:
FAIL - <body><?A---------------->:
FAIL - <body><?A---------------- data>:
FAIL - <body><?z0123456789>:
FAIL - <body><?z0123456789 data>:
FAIL - <body><?m-0>:
FAIL - <body><?m-0 data>:
FAIL - <body><?start:
FAIL - <body><?start?:
FAIL - <body><?start :
FAIL - <body><?start data:
FAIL - <body><?start ? ?:
FAIL - <body><?:
FAIL - <div><?something></div>:
FAIL - <div><?something good></div>:
FAIL - <table><?something></table>:
FAIL - <table><tr><?something></tr></table>:
FAIL - <?something>:
FAIL - <head><?something>:
FAIL - <html><?something><head>:
FAIL - <html><head></head><?something><body>:
FAIL - <html><body></body><?something>:
FAIL - <html><body></body></html><?something>:
FAIL - <body><template><?something></template>:
FAIL - <template><?pi>:
FAIL
- <body><?something>:
- /html/syntax/parsing/html5lib_write.html?file=tests1 [wpt.fyi]
- <?:
FAIL - <?COMMENT?>:
FAIL - <?COM--MENT?>:
FAIL
- <?:
- /html/syntax/parsing/html5lib_write.html?file=html5test-com [wpt.fyi]
- <?import namespace="foo" implementation="#bar">:
FAIL
- <?import namespace="foo" implementation="#bar">:
- /html/syntax/parsing/html5lib_write_single.html?file=html5test-com [wpt.fyi]
- <?import namespace="foo" implementation="#bar">:
FAIL
- <?import namespace="foo" implementation="#bar">:
- /html/syntax/parsing/html5lib_write_single.html?file=tests1 [wpt.fyi]
- <?:
FAIL - <?COMMENT?>:
FAIL - <?COM--MENT?>:
FAIL
- <?:
- /html/syntax/parsing/html5lib_write_single.html?file=processing-instructions [wpt.fyi]
- <body><?something>:
FAIL - <body><?something><span>:
FAIL - <body><?something good>:
FAIL - <body><?something else is good>:
FAIL - <body><?one><?two>:
FAIL - <body><?a$><?b$><?good?>:
FAIL - <body><?hey there?>:
FAIL - <body><?hey there?>:
FAIL - <body><?hey?there>:
FAIL - <body><?hey\tthere=1?>:
FAIL - <body><?hey\nthere=1?>:
FAIL - <body><?hey\rthere=1?>:
FAIL - <body><?hey\x0cthere=1?>:
FAIL - <body><?something ? >:
FAIL - <body><?something x >:
FAIL - <body><?something ?\t ??>:
FAIL - <body><?t d > ?>:
FAIL - <body><?module-handler>:
FAIL - <body><?module-handler data>:
FAIL - <body><?view-port>:
FAIL - <body><?view-port data>:
FAIL - <body><?config-v2>:
FAIL - <body><?config-v2 data>:
FAIL - <body><?x>:
FAIL - <body><?x data>:
FAIL - <body><?zz2op>:
FAIL - <body><?zz2op data>:
FAIL - <body><?xla->:
FAIL - <body><?xla- data>:
FAIL - <body><?a-b-c>:
FAIL - <body><?a-b-c data>:
FAIL - <body><?v-123>:
FAIL - <body><?v-123 data>:
FAIL - <body><?a0-b1-c2>:
FAIL - <body><?a0-b1-c2 data>:
FAIL - <body><?page-404>:
FAIL - <body><?page-404 data>:
FAIL - <body><?r2-d2>:
FAIL - <body><?r2-d2 data>:
FAIL - <body><?level-99>:
FAIL - <body><?level-99 data>:
FAIL - <body><?UPPERCASE>:
FAIL - <body><?UPPERCASE data>:
FAIL - <body><?all-KINDS-of-CaSeS>:
FAIL - <body><?all-KINDS-of-CaSeS data>:
FAIL - <body><?user_name>:
FAIL - <body><?user_name data>:
FAIL - <body><?S_S-S_S>:
FAIL - <body><?S_S-S_S data>:
FAIL - <body><?b_>:
FAIL - <body><?b_ data>:
FAIL - <body><?_prefix>:
FAIL - <body><?_prefix data>:
FAIL - <body><?_x132>:
FAIL - <body><?_x132 data>:
FAIL - <body><?->:
FAIL - <body><?- data>:
FAIL - <body><?_>:
FAIL - <body><?_ data>:
FAIL - <body><?A---------------->:
FAIL - <body><?A---------------- data>:
FAIL - <body><?z0123456789>:
FAIL - <body><?z0123456789 data>:
FAIL - <body><?m-0>:
FAIL - <body><?m-0 data>:
FAIL - <body><?start:
FAIL - <body><?start?:
FAIL - <body><?start :
FAIL - <body><?start data:
FAIL - <body><?start ? ?:
FAIL - <body><?:
FAIL - <div><?something></div>:
FAIL - <div><?something good></div>:
FAIL - <table><?something></table>:
FAIL - <table><tr><?something></tr></table>:
FAIL - <?something>:
FAIL - <head><?something>:
FAIL - <html><?something><head>:
FAIL - <html><head></head><?something><body>:
FAIL - <html><body></body><?something>:
FAIL - <html><body></body></html><?something>:
FAIL - <body><template><?something></template>:
FAIL - <template><?pi>:
FAIL
- <body><?something>:
- /html/syntax/parsing/html5lib_write_single.html?file=adoption02 [wpt.fyi]
- <nobr><table><marquee></table><nobr>:
FAIL
- <nobr><table><marquee></table><nobr>:
- /html/syntax/parsing/html5lib_write_single.html?file=tests15 [wpt.fyi]
- <!doctype html><table> X<meta></table>:
FAIL - <!doctype html><table> x</table>:
FAIL - <!doctype html><table> x </table>:
FAIL - <!doctype html><table><tr> x</table>:
FAIL
- <!doctype html><table> X<meta></table>:
- /html/syntax/parsing/html5lib_write_single.html?file=webkit02 [wpt.fyi]
- <select><button><selectedcontent></button><option>X:
FAIL - <select><button><selectedcontent></button><option>x<i>i<b>ib</i>b:
FAIL - <select><button><selectedcontent></button><option>X<option>Y:
FAIL - <select><button><selectedcontent></button><option>X<option selected>Y:
FAIL
- <select><button><selectedcontent></button><option>X:
- /html/syntax/parsing/html5lib_write_single.html?file=tests19 [wpt.fyi]
- <!doctype html><table> b <!--foo-->:
FAIL
- <!doctype html><table> b <!--foo-->:
- /html/syntax/parsing/html5lib_write_single.html?file=tests7 [wpt.fyi]
- A<table><tr> B</tr> B</table>:
FAIL - A<table><tr> B</tr> </em>C</table>:
FAIL
- A<table><tr> B</tr> B</table>:
- /html/syntax/parsing/insert-into-nonempty-document.html [wpt.fyi]
- A DOCTYPE token is dropped when the Document already has a doctype child:
FAIL - A DOCTYPE token is dropped when the Document already has an element child:
FAIL - An html start tag is dropped when the Document already has an element child:
FAIL
- A DOCTYPE token is dropped when the Document already has a doctype child:
Tests Disabled in Gecko Infrastructure
Comment 4•3 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/40d050c865b5
https://hg.mozilla.org/mozilla-central/rev/f4521f39d04b
Comment 5•3 months ago
|
||
| bugherder | ||
Description
•