Dart SDK
dart:html
ShadowRoot
class
ShadowRoot
Static Properties
Properties
Methods
Static properties
supported
Properties
activeElement
host
innerHtml
olderShadowRoot
styleSheets
resetStyleInheritance
applyAuthorStyles
on
nodes
childNodes
baseUri
firstChild
lastChild
nextNode
nodeName
nodeType
nodeValue
ownerDocument
parent
parentNode
previousNode
text
children
innerHtml
Methods
clone
elementFromPoint
getElementById
getElementsByClassName
getElementsByTagName
getSelection
toString
addEventListener
removeEventListener
dispatchEvent
remove
replaceWith
insertAllBefore
append
contains
hasChildNodes
insertBefore
querySelectorAll
setInnerHtml
appendText
appendHtml
query
queryAll
querySelector
(Not documented.)
Annotations
DomName('ShadowRoot')
SupportedBrowser(SupportedBrowser.CHROME, '26')
Experimental()
Extends
Object
EventTarget
Node
DocumentFragment
ShadowRoot
Static Properties
bool
supported
read-only
Properties
Element
activeElement
read-only
Element
host
read-only
String
innerHtml
read / write
ShadowRoot
olderShadowRoot
read-only
List
<
StyleSheet
>
styleSheets
read-only
bool
resetStyleInheritance
read / write
bool
applyAuthorStyles
read / write
Events
on
read-only ,
inherited
This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
List
<
Node
>
nodes
read / write ,
inherited
A modifiable list of this node's children.
List
<
Node
>
childNodes
read-only ,
inherited
A list of this node's children.
String
baseUri
read-only ,
inherited
Node
firstChild
read-only ,
inherited
The first child of this node.
Node
lastChild
read-only ,
inherited
The last child of this node.
Node
nextNode
read-only ,
inherited
The next sibling node.
String
nodeName
read-only ,
inherited
The name of this node.
int
nodeType
read-only ,
inherited
The type of node.
String
nodeValue
read-only ,
inherited
The value of this node.
Document
ownerDocument
read-only ,
inherited
The document this node belongs to.
Element
parent
read-only ,
inherited
The parent element of this node.
Node
parentNode
read-only ,
inherited
The parent node of this node.
Node
previousNode
read-only ,
inherited
The previous sibling node.
String
text
read / write ,
inherited
All text within this node and its decendents.
List
<
Element
>
children
read / write ,
inherited
String
innerHtml
read / write ,
inherited
Methods
clone
(
bool
deep
) →
Node
Returns a copy of this node.
elementFromPoint
(
int
x
,
int
y
) →
Element
getElementById
(
String
elementId
) →
Element
getElementsByClassName
(
String
className
) →
List
<
Node
>
getElementsByTagName
(
String
tagName
) →
List
<
Node
>
getSelection
(
) →
Selection
toString
(
) →
String
inherited
Print out a String representation of this Node.
addEventListener
(
String
type
,
dynamic
listener
(
Event
event
)
, [
bool
useCapture
]) →
void
inherited
removeEventListener
(
String
type
,
dynamic
listener
(
Event
event
)
, [
bool
useCapture
]) →
void
inherited
dispatchEvent
(
Event
event
) →
bool
inherited
remove
(
) →
void
inherited
Removes this node from the DOM.
replaceWith
(
Node
otherNode
) →
Node
inherited
Replaces this node with another node.
insertAllBefore
(
Iterable
<
Node
>
newNodes
,
Node
refChild
) →
Node
inherited
Inserts all of the nodes into this node directly before refChild.
append
(
Node
newChild
) →
Node
inherited
Adds a node to the end of the child
nodes
list of this node.
contains
(
Node
other
) →
bool
inherited
Returns true if this node contains the specified node.
hasChildNodes
(
) →
bool
inherited
Returns true if this node has any children.
insertBefore
(
Node
newChild
,
Node
refChild
) →
Node
inherited
Inserts all of the nodes into this node directly before refChild.
querySelectorAll
(
String
selectors
) →
ElementList
<
Element
>
inherited
Finds all descendant elements of this document fragment that match the specified group of selectors.
setInnerHtml
(
String
html
, {
NodeValidator
validator
,
NodeTreeSanitizer
treeSanitizer
}) →
void
inherited
appendText
(
String
text
) →
void
inherited
Adds the specified text as a text node after the last child of this document fragment.
appendHtml
(
String
text
, {
NodeValidator
validator
,
NodeTreeSanitizer
,
treeSanitizer
}) →
void
inherited
Parses the specified text as HTML and adds the resulting node after the last child of this document fragment.
query
(
String
relativeSelectors
) →
Element
inherited
Alias for
querySelector
. Note this function is deprecated because its semantics will be changing in the future.
queryAll
(
String
relativeSelectors
) →
ElementList
<
Element
>
inherited
Alias for
querySelectorAll
. Note this function is deprecated because its semantics will be changing in the future.
querySelector
(
String
selectors
) →
Element
inherited
Finds the first descendant element of this document fragment that matches the specified group of selectors.