WPT
wpt / domparsing / insert_adjacent_html-xhtml.xhtml
Spec: DOM Parsing and Serialization ↗
Runs: Chrome 155.0.8039.0 (wpt@6ec9fd59f, 2026-09-03) | Firefox 157.0a1 (wpt@6ec9fd59f, 2026-09-03) | Safari 251 preview (wpt@5ce815a83, 2026-08-27) | Ladybird 1.0-795e1 (wpt@7e3d005d7, 2026-09-03) | Servo Servo 0.6 (wpt@09159dcb3, 2026-09-02) | Blitz 188486089 (wpt@a95401e4e, 2026-09-02)
View on the Blitz WPT dashboard | Open test on wpt.live | wpt.fyi
| Chrome | Firefox | Safari | Ladybird | Servo | Blitz | |
|---|---|---|---|---|---|---|
| Total | 30/30 | 30/30 | 30/30 | 30/30 | 29/30 | NOT RUN |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| beforeBegin content without next sibling | PASS | PASS | PASS | PASS | PASS | — |
| Afterbegin content without next sibling | PASS | PASS | PASS | PASS | PASS | — |
| BeforeEnd content without next sibling | PASS | PASS | PASS | PASS | PASS | — |
| afterend content without next sibling | PASS | PASS | PASS | PASS | PASS | — |
| beforeBegin content again, with next sibling | PASS | PASS | PASS | PASS | PASS | — |
| Afterbegin content again, with next sibling | PASS | PASS | PASS | PASS | PASS | — |
| BeforeEnd content again, with next sibling | PASS | PASS | PASS | PASS | PASS | — |
| afterend content again, with next sibling | PASS | PASS | PASS | PASS | PASS | — |
| Should throw when inserting with invalid position string | PASS | PASS | PASS | PASS | PASS | — |
| When the parent node is null, insertAdjacentHTML should throw for beforebegin and afterend (text) | PASS | PASS | PASS | PASS | PASS | — |
| When the parent node is null, insertAdjacentHTML should throw for beforebegin and afterend (comments) | PASS | PASS | PASS | PASS | PASS | — |
| When the parent node is null, insertAdjacentHTML should throw for beforebegin and afterend (elements) | PASS | PASS | PASS | PASS | PASS | — |
| When the parent node is a document, insertAdjacentHTML should throw for beforebegin and afterend (text) | PASS | PASS | PASS | PASS | PASS | — |
| When the parent node is a document, insertAdjacentHTML should throw for beforebegin and afterend (comments) | PASS | PASS | PASS | PASS | PASS | — |
| When the parent node is a document, insertAdjacentHTML should throw for beforebegin and afterend (elements) | PASS | PASS | PASS | PASS | PASS | — |
| Inserting after being and before end should order things correctly | PASS | PASS | PASS | PASS | PASS | — |
| beforeBegin child node not in tree but has parent | PASS | PASS | PASS | PASS | PASS | — |
| Afterbegin child node not in tree but has parent | PASS | PASS | PASS | PASS | PASS | — |
| BeforeEnd child node not in tree but has parent | PASS | PASS | PASS | PASS | PASS | — |
| afterend child node not in tree but has parent | PASS | PASS | PASS | PASS | PASS | — |
| Should not run script when appending things which have descendant <script> inserted via insertAdjacentHTML | PASS | PASS | PASS | PASS | PASS | — |
| beforeBegin content2 without next sibling | PASS | PASS | PASS | PASS | PASS | — |
| Afterbegin content2 without next sibling | PASS | PASS | PASS | PASS | PASS | — |
| BeforeEnd content2 without next sibling | PASS | PASS | PASS | PASS | PASS | — |
| afterend content2 without next sibling | PASS | PASS | PASS | PASS | PASS | — |
| beforeBegin content2 test again, now that there's a next sibling | PASS | PASS | PASS | PASS | PASS | — |
| Afterbegin content2 test again, now that there's a next sibling | PASS | PASS | PASS | PASS | PASS | — |
| BeforeEnd content2 test again, now that there's a next sibling | PASS | PASS | PASS | PASS | PASS | — |
| afterend content2 test again, now that there's a next sibling | PASS | PASS | PASS | PASS | PASS | — |
| insertAdjacentHTML in HTML | PASS | PASS | PASS | PASS | FAIL | — |