ShadowRoot

#include <ShadowRoot.idl>

Inherits from DocumentFragment, Node, EventTarget

Public Functions

Name
ElementelementFromPoint(float x, float y, optional DOMString compositionId)
sequence< Element >elementsFromPoint(float x, float y)

Public Attributes

Name
readonly attribute ShadowRootModemode
readonly attribute booleandelegatesFocus
readonly attribute SlotAssignmentModeslotAssignment
readonly attribute booleanclonable
readonly attribute Elementhost
attribute DOMStringinnerHTML
readonly attribute ElementactiveElement
readonly attribute StyleSheetListstyleSheets

Additional inherited members

Public Functions inherited from DocumentFragment

Name
DocumentFragmentDocumentFragment()
ElementquerySelector(DOMString selectors)
Returns the first element that is a descendant of the element on which it is invoked that matches the specified group of selectors. Note: This should be part of the ParentNode interface, which Element implements.
NodeListquerySelectorAll(DOMString selectors)
Returns a static (not live) NodeList of all elements descended from the element on which it is invoked that matches the specified group of CSS selectors. (The base element itself is not included, even if it matches.) Note: This should be part of the ParentNode interface, which Element implements.
ElementgetElementById(DOMString elementId)
Note: This should be part of the NonElementParentNode mixin.

Public Attributes inherited from DocumentFragment

Name
readonly attribute NodeListchildren
A collection rooted at context object matching only element children. Note: This should be part of the ParentNode interface, which Element implements. implements. Note: The return type should be HTMLCollection.
readonly attribute ElementfirstElementChild
attributes getter must return the first child that is an element, and null otherwise. Note: This should be part of the ParentNode interface, which Element implements.
readonly attribute ElementlastElementChild
attributes getter must return the last child that is an element, and null otherwise. Note: This should be part of the ParentNode interface, which Element implements.
readonly attribute ElementnextElementSibling
Returns the Element immediately following this node in its parent’s children list, or null if there is no Element in the list following this node. Note: This attribute is part of the NonDocumentTypeChildNode interface, which Element implements.
readonly attribute unsigned longchildElementCount
attributes getter must return the number of children of context object that are elements. Note: This should be part of the ParentNode interface, which Element implements.

Public Functions inherited from Node

Name
NoderemoveChild(Node oldChild)
remove a child node
NodeappendChild(Node newChild)
append a node as a child
voidappend((Node or DOMString)… newChildren)
append nodes and string objects as children, where the string objects are inserted as equivalent Text nodes
NodereplaceChild(Node newChild, Node oldChild)
replace oldChild with newChild
NodeinsertBefore(Node node, Node? referenceNode)
insert a node before the reference node, as a child of the current node
NodecloneNode(optional boolean deep =false)
booleanisEqualNode(Node? otherNode)
booleanisSameNode(Node? otherNode)
booleanhasChildNodes()
booleancontains(Node? other)
DOMStringlookupPrefix(DOMString? namespace)
booleanisDefaultNamespace(DOMString? namespace)
voidnormalize()
unsigned shortcompareDocumentPosition(Node other)
NodegetRootNode(optional GetRootNodeOptions options)
DOMStringlookupNamespaceURI(DOMString? prefix)

Public Attributes inherited from Node

Name
const unsigned shortELEMENT_NODE
const unsigned shortATTRIBUTE_NODE
const unsigned shortTEXT_NODE
const unsigned shortCDATA_SECTION_NODE
const unsigned shortENTITY_REFERENCE_NODE
const unsigned shortENTITY_NODE
const unsigned shortPROCESSING_INSTRUCTION_NODE
const unsigned shortCOMMENT_NODE
const unsigned shortDOCUMENT_NODE
const unsigned shortDOCUMENT_TYPE_NODE
const unsigned shortDOCUMENT_FRAGMENT_NODE
const unsigned shortNOTATION_NODE
const unsigned shortDOCUMENT_POSITION_DISCONNECTED
const unsigned shortDOCUMENT_POSITION_PRECEDING
const unsigned shortDOCUMENT_POSITION_FOLLOWING
const unsigned shortDOCUMENT_POSITION_CONTAINS
const unsigned shortDOCUMENT_POSITION_CONTAINED_BY
const unsigned shortDOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
readonly attribute DOMStringnodeName
attribute DOMStringnodeValue
attribute DOMStringtextContent
readonly attribute unsigned shortnodeType
type of the node
readonly attribute NodeparentNode
parent of the node
readonly attribute ElementparentElement
parent element of the node. If parent is not an Element, returns null.
readonly attribute NodeListchildNodes
list of the children of this node
readonly attribute NodefirstChild
the node’s first child in the tree, or null if the node is childless
readonly attribute NodelastChild
last child of the node, or null if there are no child elements
readonly attribute NodepreviousSibling
the node immediately preceding the specified one in its parent’s children, or null if the specified node is the first in that list
readonly attribute NodenextSibling
the node immediately following the specified one in its parent’s children, or null if the specified node is the last node in that list
readonly attribute DocumentownerDocument
The Document object associated with this node. This is also the Document object used to create new nodes. When this node is a Document or a DocumentType which is not used with any Document yet, this is null.
readonly attribute USVStringbaseURI
readonly attribute booleanisConnected
attribute EventSetterslotchange

Public Functions inherited from EventTarget

Name
voidaddEventListener(DOMInternedString type, EventListener listener, optional boolean useCapture)
voidremoveEventListener(DOMInternedString type, EventListener listener, optional boolean useCapture)
booleandispatchEvent(Event event)

Public Functions Documentation

function elementFromPoint

Element elementFromPoint(
    float x,
    float y,
    optional DOMString compositionId
)

function elementsFromPoint

sequence< Element > elementsFromPoint(
    float x,
    float y
)

Public Attributes Documentation

variable mode

readonly attribute ShadowRootMode mode;

variable delegatesFocus

readonly attribute boolean delegatesFocus;

variable slotAssignment

readonly attribute SlotAssignmentMode slotAssignment;

variable clonable

readonly attribute boolean clonable;

variable host

readonly attribute Element host;

variable innerHTML

attribute DOMString innerHTML;

variable activeElement

readonly attribute Element activeElement;

variable styleSheets

readonly attribute StyleSheetList styleSheets;