blob: d8e25a3a08dce082cc97356dcbe886310601649d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<!DOCTYPE html>
<html>
<head>
<script>
class CustomElement extends HTMLElement {
constructor () {
super();
}
}
let element = document.createElement("custom-element");
customElements.define("custom-element", CustomElement);
customElements.upgrade(element);
const internals = element.attachInternals();
element = undefined;
SpecialPowers.forceGC();
SpecialPowers.forceCC();
internals.shadowRoot;
</script>
</head>
</html>
|