mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +09:00
Issue #2135 - Bug 1453789: Remove Element.createShadowRoot
This commit is contained in:
parent
010db07bf3
commit
45c179d01b
19 changed files with 25 additions and 521 deletions
|
|
@ -10,7 +10,7 @@
|
|||
}
|
||||
|
||||
connectedCallback() {
|
||||
let shadow = this.createShadowRoot();
|
||||
let shadow = this.attachShadow({ mode: "open" });
|
||||
if (this.template) {
|
||||
let te = document.createElement('template');
|
||||
te.innerHTML = this.template;
|
||||
|
|
|
|||
|
|
@ -1,16 +0,0 @@
|
|||
<!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>
|
||||
|
|
@ -484,6 +484,5 @@ load 1308793.svg
|
|||
load 1308848-1.html
|
||||
load 1308848-2.html
|
||||
asserts(0-1) load 1343606.html # bug 1343948
|
||||
load 1404789-1.html
|
||||
load 1404789-2.html
|
||||
load 1419762.html
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue