# HtmlDocument class

Inheritance
  - Object
  - EventTarget
  - Node
  - Document
  - HtmlDocument
Annotations
  - @Native("HTMLDocument")

## Properties

body ↔ BodyElement
  read / write
head → HeadElement
  read-only
lastModified → String
  read-only
onVisibilityChange → Stream<Event>
  @SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.FIREFOX), @SupportedBrowser(SupportedBrowser.IE, '10'), read-only
preferredStylesheetSet → String
  read-only
referrer → String
  read-only
selectedStylesheetSet ↔ String
  read / write
styleSheets → List<StyleSheet>
  read-only
title ↔ String
  read / write
activeElement → Element
  final, inherited
addressSpace → String
  final, inherited
baseUri → String
  @JSName('baseURI'), final, inherited
childNodes → List<Node>
  A list of this node's children. [...]
  @Creates('NodeList'), @Returns('NodeList'), final, inherited
contentType → String
  final, inherited
cookie ↔ String
  read / write, inherited
currentScript → ScriptElement
  final, inherited
documentElement → Element
  final, inherited
domain → String
  final, inherited
firstChild → Node
  The first child of this node. [...]
  final, inherited
fonts → FontFaceSet
  final, inherited
fullscreenElement → Element
  final, inherited
fullscreenEnabled → bool
  final, inherited
hashCode → int
  The hash code for this object. [...]
  read-only, inherited
hidden → bool
  final, inherited
implementation → DomImplementation
  final, inherited
isConnected → bool
  final, inherited
lastChild → Node
  The last child of this node. [...]
  final, inherited
nextNode → Node
  The next sibling node. [...]
  @JSName('nextSibling'), final, inherited
nodeName → String
  The name of this node. [...]
  final, inherited
nodes ↔ List<Node>
  A modifiable list of this node's children.
  read / write, inherited
nodeType → int
  The type of node. [...]
  final, inherited
nodeValue → String
  The value of this node. [...]
  final, inherited
on → Events
  This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
  read-only, inherited
onAbort → Stream<Event>
  Stream of `abort` events handled by this Document.
  read-only, inherited
onBeforeCopy → Stream<Event>
  Stream of `beforecopy` events handled by this Document.
  read-only, inherited
onBeforeCut → Stream<Event>
  Stream of `beforecut` events handled by this Document.
  read-only, inherited
onBeforePaste → Stream<Event>
  Stream of `beforepaste` events handled by this Document.
  read-only, inherited
onBlur → Stream<Event>
  Stream of `blur` events handled by this Document.
  read-only, inherited
onCanPlay → Stream<Event>
  read-only, inherited
onCanPlayThrough → Stream<Event>
  read-only, inherited
onChange → Stream<Event>
  Stream of `change` events handled by this Document.
  read-only, inherited
onClick → Stream<MouseEvent>
  Stream of `click` events handled by this Document.
  read-only, inherited
onContextMenu → Stream<MouseEvent>
  Stream of `contextmenu` events handled by this Document.
  read-only, inherited
onCopy → Stream<ClipboardEvent>
  Stream of `copy` events handled by this Document.
  read-only, inherited
onCut → Stream<ClipboardEvent>
  Stream of `cut` events handled by this Document.
  read-only, inherited
onDoubleClick → Stream<Event>
  Stream of `doubleclick` events handled by this Document.
  read-only, inherited
onDrag → Stream<MouseEvent>
  Stream of `drag` events handled by this Document.
  read-only, inherited
onDragEnd → Stream<MouseEvent>
  Stream of `dragend` events handled by this Document.
  read-only, inherited
onDragEnter → Stream<MouseEvent>
  Stream of `dragenter` events handled by this Document.
  read-only, inherited
onDragLeave → Stream<MouseEvent>
  Stream of `dragleave` events handled by this Document.
  read-only, inherited
onDragOver → Stream<MouseEvent>
  Stream of `dragover` events handled by this Document.
  read-only, inherited
onDragStart → Stream<MouseEvent>
  Stream of `dragstart` events handled by this Document.
  read-only, inherited
onDrop → Stream<MouseEvent>
  Stream of `drop` events handled by this Document.
  read-only, inherited
onDurationChange → Stream<Event>
  read-only, inherited
onEmptied → Stream<Event>
  read-only, inherited
onEnded → Stream<Event>
  read-only, inherited
onError → Stream<Event>
  Stream of `error` events handled by this Document.
  read-only, inherited
onFocus → Stream<Event>
  Stream of `focus` events handled by this Document.
  read-only, inherited
onFullscreenChange → Stream<Event>
  Stream of `fullscreenchange` events handled by this Document.
  read-only, inherited
onFullscreenError → Stream<Event>
  Stream of `fullscreenerror` events handled by this Document.
  read-only, inherited
onInput → Stream<Event>
  Stream of `input` events handled by this Document.
  read-only, inherited
onInvalid → Stream<Event>
  Stream of `invalid` events handled by this Document.
  read-only, inherited
onKeyDown → Stream<KeyboardEvent>
  Stream of `keydown` events handled by this Document.
  read-only, inherited
onKeyPress → Stream<KeyboardEvent>
  Stream of `keypress` events handled by this Document.
  read-only, inherited
onKeyUp → Stream<KeyboardEvent>
  Stream of `keyup` events handled by this Document.
  read-only, inherited
onLoad → Stream<Event>
  Stream of `load` events handled by this Document.
  read-only, inherited
onLoadedData → Stream<Event>
  read-only, inherited
onLoadedMetadata → Stream<Event>
  read-only, inherited
onMouseDown → Stream<MouseEvent>
  Stream of `mousedown` events handled by this Document.
  read-only, inherited
onMouseEnter → Stream<MouseEvent>
  Stream of `mouseenter` events handled by this Document.
  read-only, inherited
onMouseLeave → Stream<MouseEvent>
  Stream of `mouseleave` events handled by this Document.
  read-only, inherited
onMouseMove → Stream<MouseEvent>
  Stream of `mousemove` events handled by this Document.
  read-only, inherited
onMouseOut → Stream<MouseEvent>
  Stream of `mouseout` events handled by this Document.
  read-only, inherited
onMouseOver → Stream<MouseEvent>
  Stream of `mouseover` events handled by this Document.
  read-only, inherited
onMouseUp → Stream<MouseEvent>
  Stream of `mouseup` events handled by this Document.
  read-only, inherited
onMouseWheel → Stream<WheelEvent>
  Stream of `mousewheel` events handled by this Document.
  read-only, inherited
onPaste → Stream<ClipboardEvent>
  Stream of `paste` events handled by this Document.
  read-only, inherited
onPause → Stream<Event>
  read-only, inherited
onPlay → Stream<Event>
  read-only, inherited
onPlaying → Stream<Event>
  read-only, inherited
onPointerLockChange → Stream<Event>
  read-only, inherited
onPointerLockError → Stream<Event>
  read-only, inherited
onRateChange → Stream<Event>
  read-only, inherited
onReadyStateChange → Stream<Event>
  Stream of `readystatechange` events handled by this Document.
  read-only, inherited
onReset → Stream<Event>
  Stream of `reset` events handled by this Document.
  read-only, inherited
onResize → Stream<Event>
  read-only, inherited
onScroll → Stream<Event>
  Stream of `scroll` events handled by this Document.
  read-only, inherited
onSearch → Stream<Event>
  Stream of `search` events handled by this Document.
  read-only, inherited
onSecurityPolicyViolation → Stream<SecurityPolicyViolationEvent>
  Stream of `securitypolicyviolation` events handled by this Document.
  read-only, inherited
onSeeked → Stream<Event>
  read-only, inherited
onSeeking → Stream<Event>
  read-only, inherited
onSelect → Stream<Event>
  Stream of `select` events handled by this Document.
  read-only, inherited
onSelectionChange → Stream<Event>
  Stream of `selectionchange` events handled by this Document.
  read-only, inherited
onSelectStart → Stream<Event>
  Stream of `selectstart` events handled by this Document.
  read-only, inherited
onStalled → Stream<Event>
  read-only, inherited
onSubmit → Stream<Event>
  Stream of `submit` events handled by this Document.
  read-only, inherited
onSuspend → Stream<Event>
  read-only, inherited
onTimeUpdate → Stream<Event>
  read-only, inherited
onTouchCancel → Stream<TouchEvent>
  Stream of `touchcancel` events handled by this Document.
  read-only, inherited
onTouchEnd → Stream<TouchEvent>
  Stream of `touchend` events handled by this Document.
  read-only, inherited
onTouchMove → Stream<TouchEvent>
  Stream of `touchmove` events handled by this Document.
  read-only, inherited
onTouchStart → Stream<TouchEvent>
  Stream of `touchstart` events handled by this Document.
  read-only, inherited
onVolumeChange → Stream<Event>
  read-only, inherited
onWaiting → Stream<Event>
  read-only, inherited
origin → String
  final, inherited
ownerDocument → Document
  The document this node belongs to. [...]
  final, inherited
parent → Element
  The parent element of this node. [...]
  @JSName('parentElement'), final, inherited
parentNode → Node
  The parent node of this node. [...]
  final, inherited
pointerLockElement → Element
  final, inherited
previousNode → Node
  The previous sibling node. [...]
  @JSName('previousSibling'), final, inherited
readyState → String
  final, inherited
rootElement → SvgSvgElement
  final, inherited
rootScroller ↔ Element
  read / write, inherited
runtimeType → Type
  A representation of the runtime type of the object.
  read-only, inherited
scrollingElement → Element
  final, inherited
suborigin → String
  final, inherited
supportsRegister → bool
  Deprecated: use supportsRegisterElement instead.
  read-only, inherited
supportsRegisterElement → bool
  Checks if registerElement is supported on the current platform.
  read-only, inherited
text ↔ String
  All text within this node and its descendents. [...]
  @JSName('textContent'), read / write, inherited
timeline → DocumentTimeline
  final, inherited
visibilityState → String
  @SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.FIREFOX), @SupportedBrowser(SupportedBrowser.IE, '10'), read-only, inherited
window → WindowBase
  read-only, inherited

## Methods

caretRangeFromPoint(int x, int y) → Range
  UNSTABLE: Chrome-only - create a Range from the given point.
  @Unstable()
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
  Returns page to standard layout. [...]
  @SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.SAFARI), override
register(String tag, Type customElementClass, { String extendsTag }) → void
  Deprecated*: use registerElement instead.
registerElement2(String tag, [ Map options ]) → Function
  Register a custom subclass of Element to be instantiatable by the DOM. [...]
  override
addEventListener(String type, EventListener listener, [ bool useCapture ]) → void
  inherited
adoptNode(Node node) → Node
  inherited
append(Node node) → Node
  Adds a node to the end of the child nodes list of this node. [...]
  @JSName('appendChild'), inherited
clone(bool deep) → Node
  Returns a copy of this node. [...]
  @JSName('cloneNode'), inherited
contains(Node other) → bool
  Returns true if this node contains the specified node. [...]
  inherited
createDocumentFragment() → DocumentFragment
  inherited
createElement(String tagName, [ String typeExtension ]) → Element
  @ForceInline(), 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
  Returns true if this node has any children. [...]
  inherited
importNode(Node node, [ bool deep ]) → Node
  inherited
insertAllBefore(Iterable<Node> newNodes, Node refChild) → Node
  Inserts all of the nodes into this node directly before refChild. [...]
  inherited
insertBefore(Node node, Node child) → Node
  Inserts all of the nodes into this node directly before refChild. [...]
  inherited
noSuchMethod(Invocation invocation) → dynamic
  Invoked when a non-existent method or property is accessed. [...]
  inherited
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
  Finds the first descendant element of this document that matches the specified group of selectors. [...]
  inherited
querySelectorAll<T extends Element>(String selectors) → ElementList<T>
  Finds all descendant elements of this document that match the specified group of selectors. [...]
  inherited
registerElement(String tag, Type customElementClass, { String extendsTag }) → void
  inherited
remove() → void
  Removes this node from the DOM.
  inherited
removeEventListener(String type, EventListener listener, [ bool useCapture ]) → void
  inherited
replaceWith(Node otherNode) → Node
  Replaces this node with another node.
  inherited
toString() → String
  Print out a String representation of this Node.
  inherited

## Operators

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

## Constants

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