Dart SDK
dart:html
XmlDocument
class
XmlDocument
Methods
toString
addEventListener
removeEventListener
dispatchEvent
remove
replaceWith
insertAllBefore
append
clone
contains
hasChildNodes
insertBefore
adoptNode
createDocumentFragment
createElementNS
createRange
execCommand
exitFullscreen
exitPointerLock
getElementById
getElementsByClassName
getElementsByName
getElementsByTagName
importNode
queryCommandEnabled
queryCommandIndeterm
queryCommandState
queryCommandSupported
queryCommandValue
transformDocumentToTreeView
querySelector
querySelectorAll
query
queryAll
createElement
(Not documented.)
Annotations
DocsEditable()
DomName('XMLDocument')
Experimental()
Extends
Object
EventTarget
Node
Document
XmlDocument
Properties
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.
Element
activeElement
read-only ,
inherited
String
contentType
read-only ,
inherited
String
cookie
read / write ,
inherited
ScriptElement
currentScript
read-only ,
inherited
WindowBase
window
read-only ,
inherited
Element
documentElement
read-only ,
inherited
String
domain
read-only ,
inherited
FontFaceSet
fonts
read-only ,
inherited
Element
fullscreenElement
read-only ,
inherited
bool
fullscreenEnabled
read-only ,
inherited
bool
hidden
read-only ,
inherited
DomImplementation
implementation
read-only ,
inherited
Element
pointerLockElement
read-only ,
inherited
String
readyState
read-only ,
inherited
SvgSvgElement
rootElement
read-only ,
inherited
AnimationTimeline
timeline
read-only ,
inherited
String
visibilityState
read-only ,
inherited
Stream
<
Event
>
onAbort
read-only ,
inherited
Stream of abort events handled by this [Document].
Stream
<
Event
>
onBeforeCopy
read-only ,
inherited
Stream of beforecopy events handled by this [Document].
Stream
<
Event
>
onBeforeCut
read-only ,
inherited
Stream of beforecut events handled by this [Document].
Stream
<
Event
>
onBeforePaste
read-only ,
inherited
Stream of beforepaste events handled by this [Document].
Stream
<
Event
>
onBlur
read-only ,
inherited
Stream of blur events handled by this [Document].
Stream
<
Event
>
onCanPlay
read-only ,
inherited
Stream
<
Event
>
onCanPlayThrough
read-only ,
inherited
Stream
<
Event
>
onChange
read-only ,
inherited
Stream of change events handled by this [Document].
Stream
<
MouseEvent
>
onClick
read-only ,
inherited
Stream of click events handled by this [Document].
Stream
<
MouseEvent
>
onContextMenu
read-only ,
inherited
Stream of contextmenu events handled by this [Document].
Stream
<
Event
>
onCopy
read-only ,
inherited
Stream of copy events handled by this [Document].
Stream
<
Event
>
onCut
read-only ,
inherited
Stream of cut events handled by this [Document].
Stream
<
Event
>
onDoubleClick
read-only ,
inherited
Stream of doubleclick events handled by this [Document].
Stream
<
MouseEvent
>
onDrag
read-only ,
inherited
Stream of drag events handled by this [Document].
Stream
<
MouseEvent
>
onDragEnd
read-only ,
inherited
Stream of dragend events handled by this [Document].
Stream
<
MouseEvent
>
onDragEnter
read-only ,
inherited
Stream of dragenter events handled by this [Document].
Stream
<
MouseEvent
>
onDragLeave
read-only ,
inherited
Stream of dragleave events handled by this [Document].
Stream
<
MouseEvent
>
onDragOver
read-only ,
inherited
Stream of dragover events handled by this [Document].
Stream
<
MouseEvent
>
onDragStart
read-only ,
inherited
Stream of dragstart events handled by this [Document].
Stream
<
MouseEvent
>
onDrop
read-only ,
inherited
Stream of drop events handled by this [Document].
Stream
<
Event
>
onDurationChange
read-only ,
inherited
Stream
<
Event
>
onEmptied
read-only ,
inherited
Stream
<
Event
>
onEnded
read-only ,
inherited
Stream
<
Event
>
onError
read-only ,
inherited
Stream of error events handled by this [Document].
Stream
<
Event
>
onFocus
read-only ,
inherited
Stream of focus events handled by this [Document].
Stream
<
Event
>
onInput
read-only ,
inherited
Stream of input events handled by this [Document].
Stream
<
Event
>
onInvalid
read-only ,
inherited
Stream of invalid events handled by this [Document].
Stream
<
KeyboardEvent
>
onKeyDown
read-only ,
inherited
Stream of keydown events handled by this [Document].
Stream
<
KeyboardEvent
>
onKeyPress
read-only ,
inherited
Stream of keypress events handled by this [Document].
Stream
<
KeyboardEvent
>
onKeyUp
read-only ,
inherited
Stream of keyup events handled by this [Document].
Stream
<
Event
>
onLoad
read-only ,
inherited
Stream of load events handled by this [Document].
Stream
<
Event
>
onLoadedData
read-only ,
inherited
Stream
<
Event
>
onLoadedMetadata
read-only ,
inherited
Stream
<
MouseEvent
>
onMouseDown
read-only ,
inherited
Stream of mousedown events handled by this [Document].
Stream
<
MouseEvent
>
onMouseEnter
read-only ,
inherited
Stream of mouseenter events handled by this [Document].
Stream
<
MouseEvent
>
onMouseLeave
read-only ,
inherited
Stream of mouseleave events handled by this [Document].
Stream
<
MouseEvent
>
onMouseMove
read-only ,
inherited
Stream of mousemove events handled by this [Document].
Stream
<
MouseEvent
>
onMouseOut
read-only ,
inherited
Stream of mouseout events handled by this [Document].
Stream
<
MouseEvent
>
onMouseOver
read-only ,
inherited
Stream of mouseover events handled by this [Document].
Stream
<
MouseEvent
>
onMouseUp
read-only ,
inherited
Stream of mouseup events handled by this [Document].
Stream
<
WheelEvent
>
onMouseWheel
read-only ,
inherited
Stream of mousewheel events handled by this [Document].
Stream
<
Event
>
onPaste
read-only ,
inherited
Stream of paste events handled by this [Document].
Stream
<
Event
>
onPause
read-only ,
inherited
Stream
<
Event
>
onPlay
read-only ,
inherited
Stream
<
Event
>
onPlaying
read-only ,
inherited
Stream
<
Event
>
onPointerLockChange
read-only ,
inherited
Stream
<
Event
>
onPointerLockError
read-only ,
inherited
Stream
<
Event
>
onRateChange
read-only ,
inherited
Stream
<
Event
>
onReadyStateChange
read-only ,
inherited
Stream of readystatechange events handled by this [Document].
Stream
<
Event
>
onReset
read-only ,
inherited
Stream of reset events handled by this [Document].
Stream
<
Event
>
onResize
read-only ,
inherited
Stream
<
Event
>
onScroll
read-only ,
inherited
Stream of scroll events handled by this [Document].
Stream
<
Event
>
onSearch
read-only ,
inherited
Stream of search events handled by this [Document].
Stream
<
SecurityPolicyViolationEvent
>
onSecurityPolicyViolation
read-only ,
inherited
Stream of securitypolicyviolation events handled by this [Document].
Stream
<
Event
>
onSeeked
read-only ,
inherited
Stream
<
Event
>
onSeeking
read-only ,
inherited
Stream
<
Event
>
onSelect
read-only ,
inherited
Stream of select events handled by this [Document].
Stream
<
Event
>
onSelectionChange
read-only ,
inherited
Stream of selectionchange events handled by this [Document].
Stream
<
Event
>
onSelectStart
read-only ,
inherited
Stream of selectstart events handled by this [Document].
Stream
<
Event
>
onStalled
read-only ,
inherited
Stream
<
Event
>
onSubmit
read-only ,
inherited
Stream of submit events handled by this [Document].
Stream
<
Event
>
onSuspend
read-only ,
inherited
Stream
<
Event
>
onTimeUpdate
read-only ,
inherited
Stream
<
TouchEvent
>
onTouchCancel
read-only ,
inherited
Stream of touchcancel events handled by this [Document].
Stream
<
TouchEvent
>
onTouchEnd
read-only ,
inherited
Stream of touchend events handled by this [Document].
Stream
<
TouchEvent
>
onTouchMove
read-only ,
inherited
Stream of touchmove events handled by this [Document].
Stream
<
TouchEvent
>
onTouchStart
read-only ,
inherited
Stream of touchstart events handled by this [Document].
Stream
<
Event
>
onVolumeChange
read-only ,
inherited
Stream
<
Event
>
onWaiting
read-only ,
inherited
Stream
<
Event
>
onFullscreenChange
read-only ,
inherited
Stream of fullscreenchange events handled by this [Document].
Stream
<
Event
>
onFullscreenError
read-only ,
inherited
Stream of fullscreenerror events handled by this [Document].
bool
supportsRegisterElement
read-only ,
inherited
Checks if [registerElement] is supported on the current platform.
bool
supportsRegister
read-only ,
inherited
Deprecated: use [supportsRegisterElement] instead.
Methods
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.
clone
(
bool
deep
) →
Node
inherited
Returns a copy 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.
adoptNode
(
Node
node
) →
Node
inherited
createDocumentFragment
(
) →
DocumentFragment
inherited
createElementNS
(
String
namespaceURI
,
String
qualifiedName
, [
String
typeExtension
]) →
Element
inherited
createRange
(
) →
Range
inherited
execCommand
(
String
command
,
bool
userInterface
,
String
value
) →
bool
inherited
exitFullscreen
(
) →
void
inherited
exitPointerLock
(
) →
void
inherited
getElementById
(
String
elementId
) →
Element
inherited
getElementsByClassName
(
String
classNames
) →
List
<
Node
>
inherited
getElementsByName
(
String
elementName
) →
List
<
Node
>
inherited
getElementsByTagName
(
String
localName
) →
List
<
Node
>
inherited
importNode
(
Node
node
, [
bool
deep
]) →
Node
inherited
queryCommandEnabled
(
String
command
) →
bool
inherited
queryCommandIndeterm
(
String
command
) →
bool
inherited
queryCommandState
(
String
command
) →
bool
inherited
queryCommandSupported
(
String
command
) →
bool
inherited
queryCommandValue
(
String
command
) →
String
inherited
transformDocumentToTreeView
(
String
noStyleMessage
) →
void
inherited
querySelector
(
String
selectors
) →
Element
inherited
Finds the first descendant element of this document that matches the specified group of selectors.
querySelectorAll
(
String
selectors
) →
ElementList
<
Element
>
inherited
Finds all descendant elements of this document that match the specified group of selectors.
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.
createElement
(
String
tagName
, [
String
typeExtension
]) →
Element
inherited