зеркало из https://github.com/mozilla/gecko-dev.git
17 строки
513 B
HTML
17 строки
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>
|