@DOMObjectAttribute @DOMNameAttribute(name="ShadowRoot") public class ShadowRoot extends DocumentFragment
ShadowRoot is a root node of shadow tree.
Node.Flags
ATTRIBUTE_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, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
EventMap
PropertyChanged
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, setTextContent
adoptNode, appendChild, cloneNode, deepClone, getAttributes, getBaseURI, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getRegisteredObservers, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceAll, replaceChild, setNodeValue, setParentNode, setPrefix, toString
addEventListener, addEventListener, addEventListener, addEventListener, dispatchEvent, dispose, removeEventListener, removeEventListener, removeEventListener
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
public 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.