From 29cdf7edbe1c65b467c56040d7af544d7be39034 Mon Sep 17 00:00:00 2001
From: Mason Freed If element has an associated CSS style sheet, remove the CSS style sheet in question. If element's root is neither a shadow root nor a
+ If element's root is neither a shadow root nor a
document, then return.Element
interfaceattachShadow()
method.Node
interfaceNodeList
interfaceHTMLCollection
interface, its
length
attribute, and its
@@ -14943,7 +14948,7 @@ interface HTMLStyleElement : HTMLElement {
Element
, Document
, or DocumentFragment
referred to as
- the node, and a boolean referred to as include shadow roots whose default value is false, and returns a string.
This algorithm serializes the children of the node being serialized, not the node itself.
@@ -111848,39 +111862,36 @@ document.body.appendChild(text); true, then:Append the literal string "<template shadowroot="
" (U+003C LESS-THAN SIGN,
- U+0074 LATIN SMALL LETTER T, U+0065 LATIN SMALL LETTER E, U+006D LATIN SMALL LETTER M,
- U+0070 LATIN SMALL LETTER P, U+006C LATIN SMALL LETTER L, U+0061 LATIN SMALL LETTER A,
- U+0074 LATIN SMALL LETTER T, U+0065 LATIN SMALL LETTER E, U+0020 SPACE,
- U+0073 LATIN SMALL LETTER S, U+0068 LATIN SMALL LETTER H, U+0061 LATIN SMALL LETTER A,
- U+0064 LATIN SMALL LETTER D, U+006F LATIN SMALL LETTER O, U+0077 LATIN SMALL LETTER W,
- U+003D EQUALS SIGN, U+0022 QUOTATION MARK).
If shadow root's mode
- is "open", then append the literal
- string "open
" (U+006F LATIN SMALL LETTER O, U+0070 LATIN SMALL LETTER P,
- U+0065 LATIN SMALL LETTER E, U+006E LATIN SMALL LETTER N).
If shadow root's mode
- is "closed", then append the literal
- string "closed
" (U+0063 LATIN SMALL LETTER C, U+006C LATIN SMALL LETTER L,
- U+006F LATIN SMALL LETTER O, U+0073 LATIN SMALL LETTER S, U+0065 LATIN SMALL LETTER E,
- U+0064 LATIN SMALL LETTER D).
Append the literal string "">
" (U+0022 QUOTATION MARK,
- U+003E GREATER-THAN SIGN).
Append the value of running the HTML fragment serialization algorithm on the - shadow root element (thus recursing into this algorithm for that - element).
Append the literal string "</template>
" (U+003C LESS-THAN SIGN, U+002F SOLIDUS,
- U+0074 LATIN SMALL LETTER T, U+0065 LATIN SMALL LETTER E, U+006D LATIN SMALL LETTER M,
- U+0070 LATIN SMALL LETTER P, U+006C LATIN SMALL LETTER L, U+0061 LATIN SMALL LETTER A,
- U+0074 LATIN SMALL LETTER T, U+0065 LATIN SMALL LETTER E, U+003E GREATER-THAN SIGN).
Let shadow root be equal to the node's shadow root. + +
If shadow root's mode + is "closed", and shadow root is not contained in closed shadow roots, + then skip the next step. +
Otherwise: + +
Append the literal string "<template shadowroot="
".
If shadow root's mode
+ is "open", then append the literal
+ string "open
".
If shadow root's mode
+ is "closed", then append the literal
+ string "closed
".
Append the literal string "">
".
Append the value of running the HTML fragment serialization algorithm on the
+ shadow root DocumentFragment
(thus recursing into this algorithm for that
+ element).
Append the literal string "</template>
".
Return s.