W3cubDocs

/Dart 2

HtmlDocument class

Inheritance
Annotations
  • @Native("HTMLDocument")

Properties

bodyBodyElement
read / write
lastModifiedString
read-only
onVisibilityChangeStream<Event>
@SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.FIREFOX), @SupportedBrowser(SupportedBrowser.IE, '10'), read-only
preferredStylesheetSetString
read-only
referrerString
read-only
selectedStylesheetSetString
read / write
styleSheetsList<StyleSheet>
read-only
titleString
read / write
activeElementElement
final, inherited
addressSpaceString
final, inherited
baseUriString
@JSName('baseURI'), final, inherited
childNodesList<Node>
@Creates('NodeList'), @Returns('NodeList'), final, inherited
A list of this node's children. [...]
contentTypeString
final, inherited
currentScriptScriptElement
final, inherited
documentElementElement
final, inherited
domainString
final, inherited
firstChildNode
final, inherited
The first child of this node. [...]
fontsFontFaceSet
final, inherited
fullscreenElementElement
final, inherited
fullscreenEnabledbool
final, inherited
hashCodeint
read-only, inherited
The hash code for this object. [...]
hiddenbool
final, inherited
implementationDomImplementation
final, inherited
isConnectedbool
final, inherited
lastChildNode
final, inherited
The last child of this node. [...]
nextNodeNode
@JSName('nextSibling'), final, inherited
The next sibling node. [...]
nodeNameString
final, inherited
The name of this node. [...]
nodesList<Node>
read / write, inherited
A modifiable list of this node's children.
nodeTypeint
final, inherited
The type of node. [...]
nodeValueString
final, inherited
The value of this node. [...]
onEvents
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.
onAbortStream<Event>
read-only, inherited
Stream of abort events handled by this Document.
onBeforeCopyStream<Event>
read-only, inherited
Stream of beforecopy events handled by this Document.
onBeforeCutStream<Event>
read-only, inherited
Stream of beforecut events handled by this Document.
onBeforePasteStream<Event>
read-only, inherited
Stream of beforepaste events handled by this Document.
onBlurStream<Event>
read-only, inherited
Stream of blur events handled by this Document.
onCanPlayStream<Event>
read-only, inherited
onCanPlayThroughStream<Event>
read-only, inherited
onChangeStream<Event>
read-only, inherited
Stream of change events handled by this Document.
onClickStream<MouseEvent>
read-only, inherited
Stream of click events handled by this Document.
onContextMenuStream<MouseEvent>
read-only, inherited
Stream of contextmenu events handled by this Document.
onCopyStream<ClipboardEvent>
read-only, inherited
Stream of copy events handled by this Document.
onCutStream<ClipboardEvent>
read-only, inherited
Stream of cut events handled by this Document.
onDoubleClickStream<Event>
@DomName('Document.ondblclick'), read-only, inherited
Stream of doubleclick events handled by this Document.
onDragStream<MouseEvent>
read-only, inherited
Stream of drag events handled by this Document.
onDragEndStream<MouseEvent>
read-only, inherited
Stream of dragend events handled by this Document.
onDragEnterStream<MouseEvent>
read-only, inherited
Stream of dragenter events handled by this Document.
onDragLeaveStream<MouseEvent>
read-only, inherited
Stream of dragleave events handled by this Document.
onDragOverStream<MouseEvent>
read-only, inherited
Stream of dragover events handled by this Document.
onDragStartStream<MouseEvent>
read-only, inherited
Stream of dragstart events handled by this Document.
onDropStream<MouseEvent>
read-only, inherited
Stream of drop events handled by this Document.
onDurationChangeStream<Event>
read-only, inherited
onEmptiedStream<Event>
read-only, inherited
onEndedStream<Event>
read-only, inherited
onErrorStream<Event>
read-only, inherited
Stream of error events handled by this Document.
onFocusStream<Event>
read-only, inherited
Stream of focus events handled by this Document.
onFullscreenChangeStream<Event>
read-only, inherited
Stream of fullscreenchange events handled by this Document.
onFullscreenErrorStream<Event>
read-only, inherited
Stream of fullscreenerror events handled by this Document.
onInputStream<Event>
read-only, inherited
Stream of input events handled by this Document.
onInvalidStream<Event>
read-only, inherited
Stream of invalid events handled by this Document.
onKeyDownStream<KeyboardEvent>
read-only, inherited
Stream of keydown events handled by this Document.
onKeyPressStream<KeyboardEvent>
read-only, inherited
Stream of keypress events handled by this Document.
onKeyUpStream<KeyboardEvent>
read-only, inherited
Stream of keyup events handled by this Document.
onLoadStream<Event>
read-only, inherited
Stream of load events handled by this Document.
onLoadedDataStream<Event>
read-only, inherited
onLoadedMetadataStream<Event>
read-only, inherited
onMouseDownStream<MouseEvent>
read-only, inherited
Stream of mousedown events handled by this Document.
onMouseEnterStream<MouseEvent>
read-only, inherited
Stream of mouseenter events handled by this Document.
onMouseLeaveStream<MouseEvent>
read-only, inherited
Stream of mouseleave events handled by this Document.
onMouseMoveStream<MouseEvent>
read-only, inherited
Stream of mousemove events handled by this Document.
onMouseOutStream<MouseEvent>
read-only, inherited
Stream of mouseout events handled by this Document.
onMouseOverStream<MouseEvent>
read-only, inherited
Stream of mouseover events handled by this Document.
onMouseUpStream<MouseEvent>
read-only, inherited
Stream of mouseup events handled by this Document.
onMouseWheelStream<WheelEvent>
read-only, inherited
Stream of mousewheel events handled by this Document.
onPasteStream<ClipboardEvent>
read-only, inherited
Stream of paste events handled by this Document.
onPauseStream<Event>
read-only, inherited
onPlayStream<Event>
read-only, inherited
onPlayingStream<Event>
read-only, inherited
onPointerLockChangeStream<Event>
read-only, inherited
onPointerLockErrorStream<Event>
read-only, inherited
onRateChangeStream<Event>
read-only, inherited
onReadyStateChangeStream<Event>
read-only, inherited
Stream of readystatechange events handled by this Document.
onResetStream<Event>
read-only, inherited
Stream of reset events handled by this Document.
onResizeStream<Event>
read-only, inherited
onScrollStream<Event>
read-only, inherited
Stream of scroll events handled by this Document.
onSearchStream<Event>
read-only, inherited
Stream of search events handled by this Document.
onSecurityPolicyViolationStream<SecurityPolicyViolationEvent>
read-only, inherited
Stream of securitypolicyviolation events handled by this Document.
onSeekedStream<Event>
read-only, inherited
onSeekingStream<Event>
read-only, inherited
onSelectStream<Event>
read-only, inherited
Stream of select events handled by this Document.
onSelectionChangeStream<Event>
read-only, inherited
Stream of selectionchange events handled by this Document.
onSelectStartStream<Event>
read-only, inherited
Stream of selectstart events handled by this Document.
onStalledStream<Event>
read-only, inherited
onSubmitStream<Event>
read-only, inherited
Stream of submit events handled by this Document.
onSuspendStream<Event>
read-only, inherited
onTimeUpdateStream<Event>
read-only, inherited
onTouchCancelStream<TouchEvent>
read-only, inherited
Stream of touchcancel events handled by this Document.
onTouchEndStream<TouchEvent>
read-only, inherited
Stream of touchend events handled by this Document.
onTouchMoveStream<TouchEvent>
read-only, inherited
Stream of touchmove events handled by this Document.
onTouchStartStream<TouchEvent>
read-only, inherited
Stream of touchstart events handled by this Document.
onVolumeChangeStream<Event>
read-only, inherited
onWaitingStream<Event>
read-only, inherited
originString
final, inherited
ownerDocumentDocument
final, inherited
The document this node belongs to. [...]
parentElement
@JSName('parentElement'), final, inherited
The parent element of this node. [...]
parentNodeNode
final, inherited
The parent node of this node. [...]
pointerLockElementElement
final, inherited
previousNodeNode
@JSName('previousSibling'), final, inherited
The previous sibling node. [...]
readyStateString
final, inherited
rootElementSvgSvgElement
final, inherited
rootScrollerElement
read / write, inherited
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.
scrollingElementElement
final, inherited
suboriginString
final, inherited
supportsRegisterbool
read-only, inherited
Deprecated: use supportsRegisterElement instead.
supportsRegisterElementbool
read-only, inherited
Checks if registerElement is supported on the current platform.
textString
@JSName('textContent'), read / write, inherited
All text within this node and its descendents. [...]
timelineDocumentTimeline
final, inherited
visibilityStateString
@SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.FIREFOX), @SupportedBrowser(SupportedBrowser.IE, '10'), read-only, inherited
windowWindowBase
read-only, inherited

Methods

caretRangeFromPoint(int x, int y) → Range
@Unstable()
UNSTABLE: Chrome-only - create a Range from the given point.
createElementUpgrader(Type type, { String extendsTag }) → ElementUpgrader
Creates an element upgrader which can be used to change the Dart wrapper type for elements. [...]
elementFromPoint(int x, int y) → Element
exitFullscreen() → void
@SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.SAFARI), override
Returns page to standard layout. [...]
register(String tag, Type customElementClass, { String extendsTag }) → void
Deprecated*: use registerElement instead.
registerElement2(String tag, [ Map options ]) → Function
override
Register a custom subclass of Element to be instantiatable by the DOM. [...]
addEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
adoptNode(Node node) → Node
inherited
append(Node node) → Node
@JSName('appendChild'), inherited
Adds a node to the end of the child nodes list of this node. [...]
clone(bool deep) → Node
@JSName('cloneNode'), inherited
Returns a copy of this node. [...]
contains(Node other) → bool
inherited
Returns true if this node contains the specified node. [...]
createDocumentFragment() → DocumentFragment
inherited
createElement(String tagName, [ String typeExtension ]) → Element
inherited
createElementNS(String namespaceURI, String qualifiedName, [ String typeExtension ]) → Element
inherited
createRange() → Range
inherited
dispatchEvent(Event event) → bool
inherited
elementsFromPoint(int x, int y) → List<Element>
inherited
execCommand(String commandId, [ bool showUI, String value ]) → bool
inherited
exitPointerLock() → void
inherited
getAnimations() → List<Animation>
inherited
getElementById(String elementId) → Element
inherited
getElementsByClassName(String classNames) → List<Node>
@Creates('NodeList|HtmlCollection'), @Returns('NodeList|HtmlCollection'), inherited
getElementsByName(String elementName) → List<Node>
@Creates('NodeList|HtmlCollection'), @Returns('NodeList|HtmlCollection'), inherited
getElementsByTagName(String localName) → List<Node>
@Creates('NodeList|HtmlCollection'), @Returns('NodeList|HtmlCollection'), inherited
getRootNode([Map options ]) → Node
inherited
hasChildNodes() → bool
inherited
Returns true if this node has any children. [...]
importNode(Node node, [ bool deep ]) → Node
inherited
insertAllBefore(Iterable<Node> newNodes, Node refChild) → Node
inherited
Inserts all of the nodes into this node directly before refChild. [...]
insertBefore(Node node, Node child) → Node
inherited
Inserts all of the nodes into this node directly before refChild. [...]
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
queryCommandEnabled(String commandId) → bool
inherited
queryCommandIndeterm(String commandId) → bool
inherited
queryCommandState(String commandId) → bool
inherited
queryCommandSupported(String commandId) → bool
inherited
queryCommandValue(String commandId) → String
inherited
querySelector(String selectors) → Element
inherited
Finds the first descendant element of this document that matches the specified group of selectors. [...]
querySelectorAll<T extends Element>(String selectors) → ElementList<T>
inherited
Finds all descendant elements of this document that match the specified group of selectors. [...]
registerElement(String tag, Type customElementClass, { String extendsTag }) → void
inherited
remove() → void
inherited
Removes this node from the DOM.
removeEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
replaceWith(Node otherNode) → Node
inherited
Replaces this node with another node.
toString() → String
inherited
Print out a String representation of this Node.

Operators

operator ==(dynamic other) → bool
inherited
The equality operator. [...]

Constants

visibilityChangeEvent → const EventStreamProvider<Event>
@SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.FIREFOX), @SupportedBrowser(SupportedBrowser.IE, '10')
Static factory designed to expose visibilitychange events to event handlers that are not necessarily instances of Document. [...]
const _CustomEventStreamProvider<Event>(_determineVisibilityChangeEventType)

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-html/HtmlDocument-class.html