@DOMObjectAttribute @DOMNameAttribute(name="ShadowRoot") public class ShadowRoot extends DocumentFragment
ShadowRoot is a root node of shadow tree.
Node.FlagsATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, flags, nodeDocument, NOTATION_NODE, parent, PROCESSING_INSTRUCTION_NODE, TEXT_NODEEventMapPropertyChanged, PropertyChangedDelegate| Constructor and Description |
|---|
ShadowRoot(Document ownerDocument,
int mode,
Element host)
Initializes a new instance of the
ShadowRoot class. |
| Modifier and Type | Method and Description |
|---|---|
Element |
getHost()
Host is an element which contains this ShadowRoot.
|
int |
getMode()
Mode in which this ShadowRoot operates.
|
getChildElementCount, getChildren, getFirstElementChild, getInnerHTML, getLastElementChild, getNextElementSibling, getNodeName, getNodeType, getOuterHTML, getPreviousElementSibling, getTextContent, querySelector, querySelectorAll, setInnerHTML, setOuterHTML, setTextContentadoptNode, appendChild, cloneNode, deepClone, dispose, finalize, getAttributes, getBaseURI, getChildNodes, getChildNodesInternal, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getRegisteredObservers, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceAll, replaceChild, setLocalName, setNamespaceURI, setNodeValue, setParentNode, setPrefix, toStringaddEventListener, addEventListener, addEventListener, addEventListener, dispatchEvent, dispose, removeEventListener, removeEventListener, removeEventListenerfireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBindingpublic ShadowRoot(Document ownerDocument, int mode, Element host)
Initializes a new instance of the ShadowRoot class.
ownerDocument - The owner document.mode - Mode in which shadow root will operate.host - Element on which this root was created.@DOMNameAttribute(name="mode") public int getMode()
Mode in which this ShadowRoot operates.
@DOMNameAttribute(name="host") public Element getHost()
Host is an element which contains this ShadowRoot.