@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="ShadowRoot")
public class ShadowRoot
extends DocumentFragment
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
innerHTML
The innerHTML property of the ShadowRoot interface sets or returns a reference to the DOM tree inside the ShadowRoot.
|
EventHandler |
onslotchange |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, nodeValue, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, textContent| Modifier | Constructor and Description |
|---|---|
protected |
ShadowRoot() |
| Modifier and Type | Method and Description |
|---|---|
Element |
activeElement()
The activeElement read-only property of the Document and ShadowRoot interfaces returns the Element within the DOM or shadow DOM tree that currently has focus.
|
Element |
fullscreenElement()
The DocumentOrShadowRoot.fullscreenElement read-only property returns the Element that is currently being presented in full-screen mode in this document, or null if full-screen mode is not currently in use.
|
Element |
host()
The host read-only property of the ShadowRoot returns a reference to the DOM element the ShadowRoot is attached to.
|
java.lang.String |
mode()
The mode property of the ShadowRoot specifies its mode — either open or closed.
|
Element |
pointerLockElement()
The pointerLockElement property of the Document and ShadowRoot interfaces provides the element set as the target for mouse events while the pointer is locked.
|
StyleSheetList |
styleSheets()
The styleSheets read-only property of the DocumentOrShadowRoot interface returns a StyleSheetList of CSSStyleSheet objects, for stylesheets explicitly linked into or embedded in a document.
|
append, append, childElementCount, children, firstElementChild, getElementById, lastElementChild, prepend, prepend, querySelector, querySelectorAll, replaceChildren, replaceChildrenappendChild, baseURI, childNodes, cloneNode, cloneNode, compareDocumentPosition, contains, firstChild, getRootNode, getRootNode, hasChildNodes, insertBefore, isConnected, isDefaultNamespace, isEqualNode, isSameNode, lastChild, lookupNamespaceURI, lookupPrefix, nextSibling, nodeName, nodeType, normalize, ownerDocument, parentElement, parentNode, previousSibling, removeChild, replaceChildaddEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListener@Nonnull public java.lang.String innerHTML
@Nullable public EventHandler onslotchange
@JsProperty(name="activeElement") @Nullable public Element activeElement()
@JsProperty(name="fullscreenElement") @Nullable public Element fullscreenElement()
@JsProperty(name="host") @Nonnull public Element host()
@JsProperty(name="mode") @Nonnull @ShadowRootMode public java.lang.String mode()
@JsProperty(name="pointerLockElement") @Nullable public Element pointerLockElement()
@JsProperty(name="styleSheets") @Nonnull public StyleSheetList styleSheets()