blob: 98ae7966a8b0dfc4cbda05f9f8a50613cfe600d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<html xmlns="http://www.w3.org/1999/xhtml"
class="reftest-wait">
<head>
<script><![CDATA[
customElements.define("custom-td", class extends HTMLDivElement {
constructor() {
super();
this.attachShadow({ mode: "open" });
let td = document.createElement('td');
td.append(document.createElement('slot'));
this.shadowRoot.append(td);
}
}, {
extends: "div",
});
function f1() {
document.getElementById("outer")
.appendChild(document.createTextNode("PASS"));
document.documentElement.className = "";
}
]]></script>
</head>
<body onload="f1();">
<div is="custom-td" id="outer"></div>
</body>
</html>
|