Dart API Reference
dart:html
ShadowRoot
ShadowRoot
class
Annotated by:
DomName('ShadowRoot')
SupportedBrowser(SupportedBrowser.CHROME, '26')
Experimental()
Extends:
DocumentFragment
Node
EventTarget
Object
Static Properties
supported
bool
read-only
Instance Properties
activeElement
Element
read-only
host
Element
read-only
innerHtml
String
read/write
olderShadowRoot
ShadowRoot
read-only
styleSheets
List
<
StyleSheet
>
read-only
resetStyleInheritance
bool
read/write
applyAuthorStyles
bool
read/write
on
Events
Inherited
read-only
nodes
List
<
Node
>
Inherited
read/write
baseUri
String
Inherited
read-only
childNodes
List
<
Node
>
Inherited
read-only
firstChild
Node
Inherited
read-only
lastChild
Node
Inherited
read-only
nextNode
Node
Inherited
read-only
nodeName
String
Inherited
read-only
nodeType
int
Inherited
read-only
nodeValue
String
Inherited
read-only
ownerDocument
Document
Inherited
read-only
parent
Element
Inherited
read-only
parentNode
Node
Inherited
read-only
previousNode
Node
Inherited
read-only
text
String
Inherited
read/write
children
List
<
Element
>
Inherited
read/write
innerHtml
String
Inherited
read/write
Instance 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
Inherited
( ) →
String
Print out a String representation of this Node.
addEventListener
Inherited
(
String
type
,
dynamic
listener
(
Event
event
)
, [
bool
useCapture
] ) →
void
removeEventListener
Inherited
(
String
type
,
dynamic
listener
(
Event
event
)
, [
bool
useCapture
] ) →
void
dispatchEvent
Inherited
(
Event
event
) →
bool
remove
Inherited
( ) →
void
Removes this node from the DOM.
replaceWith
Inherited
(
Node
otherNode
) →
Node
Replaces this node with another node.
insertAllBefore
Inherited
(
Iterable
<
Node
>
newNodes
,
Node
refChild
) →
Node
Inserts all of the nodes into this node directly before refChild.
append
Inherited
(
Node
newChild
) →
Node
Adds a node to the end of the child
nodes
list of this node.
contains
Inherited
(
Node
other
) →
bool
Returns true if this node contains the specified node.
hasChildNodes
Inherited
( ) →
bool
Returns true if this node has any children.
insertBefore
Inherited
(
Node
newChild
,
Node
refChild
) →
Node
Inserts all of the nodes into this node directly before refChild.
querySelectorAll
Inherited
(
String
selectors
) →
ElementList
<
Element
>
Finds all descendant elements of this document fragment that match the specified group of selectors.
setInnerHtml
Inherited
(
String
html
, {
NodeValidator
validator
,
NodeTreeSanitizer
treeSanitizer
} ) →
void
appendText
Inherited
(
String
text
) →
void
Adds the specified text as a text node after the last child of this document fragment.
appendHtml
Inherited
(
String
text
, {
NodeValidator
validator
,
NodeTreeSanitizer
,
treeSanitizer
} ) →
void
Parses the specified text as HTML and adds the resulting node after the last child of this document fragment.
query
Inherited
(
String
relativeSelectors
) →
Element
Alias for
querySelector
. Note this function is deprecated because its semantics will be changing in the future.
queryAll
Inherited
(
String
relativeSelectors
) →
ElementList
<
Element
>
Alias for
querySelectorAll
. Note this function is deprecated because its semantics will be changing in the future.
querySelector
Inherited
(
String
selectors
) →
Element
Finds the first descendant element of this document fragment that matches the specified group of selectors.