mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-02 20:47:33 +09:00
* Implementation for assignedNodes * Include slots in the flat tree * Fix event get-the-parent algorithm for a node * Update and add reftests for Shadow DOM v1 * Update web platform tests expectations Tag #1375
22 lines
529 B
HTML
22 lines
529 B
HTML
<!DOCTYPE HTML>
|
|
<html class="reftest-wait">
|
|
<head>
|
|
</head>
|
|
<body>
|
|
<div id="outer"><span id="distnode">text</span></div>
|
|
<script>
|
|
|
|
var shadowRoot = document.getElementById('outer').attachShadow({mode: 'open'});
|
|
shadowRoot.innerHTML = '<div><slot></slot></div>';
|
|
|
|
function tweak() {
|
|
var distNode = document.getElementById("distnode");
|
|
distNode.textContent = "Hello World";
|
|
|
|
document.documentElement.removeAttribute("class");
|
|
}
|
|
|
|
window.addEventListener("MozReftestInvalidate", tweak);
|
|
</script>
|
|
</body>
|
|
</html>
|