blob: aefe84f2521a763d4051f9fe3d1591a1bdaca476 (
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
27
|
<!DOCTYPE html>
<html class="reftest-wait">
<head>
</head>
<body>
<div id="host"></div>
<script>
var host, root;
host = document.getElementById("host");
root = host.attachShadow({mode: 'open'});
root.innerHTML = 'a <slot></slot> c';
function tweak() {
var span = document.createElement("span");
span.innerHTML = "b";
// Span should be distributed to insertion point between 'a' and 'c'.
host.appendChild(span);
document.documentElement.removeAttribute("class");
}
window.addEventListener("MozReftestInvalidate", tweak);
</script>
</body>
</html>
|