| 128 | == `window.internals` == |
| 129 | |
| 130 | === `createShadowContentElement(Document)` === |
| 131 | |
| 132 | Creates a `<content>` element for use in shadow DOM. These elements can not be created from JavaScript, hence this constructor in the test harness. |
| 133 | |
| 134 | === `elementRenderTreeAsText(Element)` === |
| 135 | |
| 136 | Gets and returns the element’s renderer’s description of its tree as a String. |
| 137 | |
| 138 | === `ensureShadowRoot(Element)` === |
| 139 | |
| 140 | Given a host element, returns its shadow root node. If the element doesn’t have a shadow root one is created and attached to the element. If you want to just retrieve a shadow root without creating one, use ''shadowRoot''. ''ensureShadowRoot'' only inspects DOM shadows; not SVG shadows. |
| 141 | |
| 142 | === `isPreloaded(Document, String url)` === |
| 143 | |
| 144 | Gets whether the specified document’s cached resource loader has the specified URL preloaded. |
| 145 | |
| 146 | === `removeShadowRoot(Element)` === |
| 147 | |
| 148 | Given a host element, removes its shadow root if it has one. ''removeShadowRoot'' only inspects DOM shadows; not SVG shadows. |
| 149 | |
| 150 | === `shadowPseudoId(Element)` === |
| 151 | |
| 152 | Gets the specified element’s CSS pseudo-id for styling when in shadow DOM. |
| 153 | |
| 154 | === `shadowRoot(Element)` === |
| 155 | |
| 156 | Given a host element gets its shadow root, if it has one; otherwise ''shadowRoot'' returns `null`. |
| 157 | |