mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-11 17:57:32 +09:00
16 lines
513 B
HTML
16 lines
513 B
HTML
|
|
<!doctype html>
|
||
|
|
<script>
|
||
|
|
// Test for content redistribution outside of the document.
|
||
|
|
// Passes if it doesn't assert.
|
||
|
|
let host = document.createElement('div');
|
||
|
|
host.innerHTML = "<div id='foo'></div>";
|
||
|
|
|
||
|
|
let shadowRoot = host.createShadowRoot();
|
||
|
|
shadowRoot.innerHTML = "<content select='#foo'></content>";
|
||
|
|
|
||
|
|
host.firstElementChild.removeAttribute('id');
|
||
|
|
|
||
|
|
// Move to the document, do the same.
|
||
|
|
document.documentElement.appendChild(host);
|
||
|
|
host.firstElementChild.setAttribute('id', 'foo');
|
||
|
|
</script>
|