Document class - dart:html library (original) (raw)

The base class for all documents.

Each web page loaded in the browser has its own Document object, which is typically an HtmlDocument.

If you aren't comfortable with DOM concepts, see the Dart tutorialTarget 2: Connect Dart & HTML.

Inheritance

Implementers

Annotations

Constructors

Document()

factory

Properties

activeElementElement?

no setter

addressSpaceString?

no setter

baseUriString?

no setterinherited

childNodesList<Node>

A list of this node's children.

no setterinherited

contentTypeString?

no setter

cookieString?

getter/setter pair

currentScriptScriptElement?

no setter

documentElementElement?

no setter

domainString?

no setter

firstChildNode?

The first child of this node.

no setterinherited

fontsFontFaceSet?

no setter

fullscreenElementElement?

no setter

fullscreenEnabledbool?

no setter

hashCodeint

The hash code for this object.

no setterinherited

hiddenbool?

no setter

implementationDomImplementation?

no setter

isConnectedbool?

no setterinherited

lastChildNode?

The last child of this node.

no setterinherited

nextNodeNode?

The next sibling node.

no setterinherited

nodeNameString?

The name of this node.

no setterinherited

nodesList<Node>

A modifiable list of this node's children.

getter/setter pairinherited

nodeTypeint

The type of node.

no setterinherited

nodeValueString?

The value of this node.

no setterinherited

onEvents

This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.

no setterinherited

onAbortStream<Event>

Stream of abort events handled by this Document.

no setter

onBeforeCopyStream<Event>

Stream of beforecopy events handled by this Document.

no setter

onBeforeCutStream<Event>

Stream of beforecut events handled by this Document.

no setter

onBeforePasteStream<Event>

Stream of beforepaste events handled by this Document.

no setter

onBlurStream<Event>

Stream of blur events handled by this Document.

no setter

onCanPlayStream<Event>

no setter

onCanPlayThroughStream<Event>

no setter

onChangeStream<Event>

Stream of change events handled by this Document.

no setter

onClickStream<MouseEvent>

Stream of click events handled by this Document.

no setter

Stream of contextmenu events handled by this Document.

no setter

onCopyStream<ClipboardEvent>

Stream of copy events handled by this Document.

no setter

onCutStream<ClipboardEvent>

Stream of cut events handled by this Document.

no setter

onDoubleClickStream<Event>

Stream of doubleclick events handled by this Document.

no setter

onDragStream<MouseEvent>

Stream of drag events handled by this Document.

no setter

onDragEndStream<MouseEvent>

Stream of dragend events handled by this Document.

no setter

onDragEnterStream<MouseEvent>

Stream of dragenter events handled by this Document.

no setter

onDragLeaveStream<MouseEvent>

Stream of dragleave events handled by this Document.

no setter

onDragOverStream<MouseEvent>

Stream of dragover events handled by this Document.

no setter

onDragStartStream<MouseEvent>

Stream of dragstart events handled by this Document.

no setter

onDropStream<MouseEvent>

Stream of drop events handled by this Document.

no setter

onDurationChangeStream<Event>

no setter

onEmptiedStream<Event>

no setter

onEndedStream<Event>

no setter

onErrorStream<Event>

Stream of error events handled by this Document.

no setter

onFocusStream<Event>

Stream of focus events handled by this Document.

no setter

onFullscreenChangeStream<Event>

Stream of fullscreenchange events handled by this Document.

no setter

onFullscreenErrorStream<Event>

Stream of fullscreenerror events handled by this Document.

no setter

onInputStream<Event>

Stream of input events handled by this Document.

no setter

onInvalidStream<Event>

Stream of invalid events handled by this Document.

no setter

onKeyDownStream<KeyboardEvent>

Stream of keydown events handled by this Document.

no setter

onKeyPressStream<KeyboardEvent>

Stream of keypress events handled by this Document.

no setter

onKeyUpStream<KeyboardEvent>

Stream of keyup events handled by this Document.

no setter

onLoadStream<Event>

Stream of load events handled by this Document.

no setter

onLoadedDataStream<Event>

no setter

onLoadedMetadataStream<Event>

no setter

onMouseDownStream<MouseEvent>

Stream of mousedown events handled by this Document.

no setter

onMouseEnterStream<MouseEvent>

Stream of mouseenter events handled by this Document.

no setter

onMouseLeaveStream<MouseEvent>

Stream of mouseleave events handled by this Document.

no setter

onMouseMoveStream<MouseEvent>

Stream of mousemove events handled by this Document.

no setter

onMouseOutStream<MouseEvent>

Stream of mouseout events handled by this Document.

no setter

onMouseOverStream<MouseEvent>

Stream of mouseover events handled by this Document.

no setter

onMouseUpStream<MouseEvent>

Stream of mouseup events handled by this Document.

no setter

onMouseWheelStream<WheelEvent>

Stream of mousewheel events handled by this Document.

no setter

onPasteStream<ClipboardEvent>

Stream of paste events handled by this Document.

no setter

onPauseStream<Event>

no setter

onPlayStream<Event>

no setter

onPlayingStream<Event>

no setter

onPointerLockChangeStream<Event>

no setter

onPointerLockErrorStream<Event>

no setter

onRateChangeStream<Event>

no setter

onReadyStateChangeStream<Event>

Stream of readystatechange events handled by this Document.

no setter

onResetStream<Event>

Stream of reset events handled by this Document.

no setter

onResizeStream<Event>

no setter

onScrollStream<Event>

Stream of scroll events handled by this Document.

no setter

onSearchStream<Event>

Stream of search events handled by this Document.

no setter

onSecurityPolicyViolationStream<SecurityPolicyViolationEvent>

Stream of securitypolicyviolation events handled by this Document.

no setter

onSeekedStream<Event>

no setter

onSeekingStream<Event>

no setter

onSelectStream<Event>

Stream of select events handled by this Document.

no setter

onSelectionChangeStream<Event>

Stream of selectionchange events handled by this Document.

no setter

onSelectStartStream<Event>

Stream of selectstart events handled by this Document.

no setter

onStalledStream<Event>

no setter

onSubmitStream<Event>

Stream of submit events handled by this Document.

no setter

onSuspendStream<Event>

no setter

onTimeUpdateStream<Event>

no setter

onTouchCancelStream<TouchEvent>

Stream of touchcancel events handled by this Document.

no setter

onTouchEndStream<TouchEvent>

Stream of touchend events handled by this Document.

no setter

onTouchMoveStream<TouchEvent>

Stream of touchmove events handled by this Document.

no setter

onTouchStartStream<TouchEvent>

Stream of touchstart events handled by this Document.

no setter

onVolumeChangeStream<Event>

no setter

onWaitingStream<Event>

no setter

originString?

no setter

ownerDocumentDocument?

The document this node belongs to.

no setterinherited

parentElement?

The parent element of this node.

no setterinherited

parentNodeNode?

The parent node of this node.

no setterinherited

pointerLockElementElement?

no setter

previousNodeNode?

The previous sibling node.

no setterinherited

readyStateString?

no setter

rootElementSvgSvgElement?

no setter

rootScrollerElement?

getter/setter pair

runtimeTypeType

A representation of the runtime type of the object.

no setterinherited

scrollingElementElement?

no setter

suboriginString?

no setter

textString?

All text within this node and its descendants.

getter/setter pairinherited

timelineDocumentTimeline?

no setter

visibilityStateString

no setter

windowWindowBase?

no setter

Methods

addEventListener(String type, EventListener? listener, [bool? useCapture])→ void

inherited

adoptNode(Node node)→ Node

append(Node node)→ Node

Adds a node to the end of the child nodes list of this node.

inherited

clone(bool? deep)→ Node

Returns a copy of this node.

inherited

contains(Node? other)→ bool

Returns true if this node contains the specified node.

inherited

createDocumentFragment()→ DocumentFragment

createElement(String tagName, [String? typeExtension])→ Element

createElementNS(String namespaceURI, String qualifiedName, [String? typeExtension])→ Element

createRange()→ Range

dispatchEvent(Event event)→ bool

inherited

elementsFromPoint(int x, int y)→ List<Element>

execCommand(String commandId, [bool? showUI, String? value])→ bool

exitFullscreen()→ void

exitPointerLock()→ void

getAnimations()→ List<Animation>

getElementById(String elementId)→ Element?

getElementsByClassName(String classNames)→ List<Node>

getElementsByName(String elementName)→ List<Node>

getElementsByTagName(String localName)→ List<Node>

getRootNode([Map? options])→ Node

inherited

hasChildNodes()→ bool

Returns true if this node has any children.

inherited

importNode(Node node, [bool? deep])→ Node

insertAllBefore(Iterable<Node> newNodes, Node child)→ void

Inserts all of the nodes into this node directly before child.

inherited

insertBefore(Node node, Node? child)→ Node

Inserts the given node into this node directly before child. If child is null, then the given node is inserted at the end of this node's child nodes.

inherited

noSuchMethod(Invocation invocation)→ dynamic

Invoked when a nonexistent method or property is accessed.

inherited

queryCommandEnabled(String commandId)→ bool

queryCommandIndeterm(String commandId)→ bool

queryCommandState(String commandId)→ bool

queryCommandSupported(String commandId)→ bool

queryCommandValue(String commandId)→ String

querySelector(String selectors)→ Element?

Finds the first descendant element of this document that matches the specified group of selectors.

querySelectorAll<T extends Element>(String selectors)→ ElementList<T>

Finds all descendant elements of this document that match the specified group of selectors.

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 ==(Object other)→ bool

The equality operator.

inherited

Constants

pointerLockChangeEvent → const EventStreamProvider<Event>

pointerLockErrorEvent → const EventStreamProvider<Event>

readyStateChangeEvent → const EventStreamProvider<Event>

Static factory designed to expose readystatechange events to event handlers that are not necessarily instances of Document.

securityPolicyViolationEvent → const EventStreamProvider<SecurityPolicyViolationEvent>

Static factory designed to expose securitypolicyviolation events to event handlers that are not necessarily instances of Document.

selectionChangeEvent → const EventStreamProvider<Event>

Static factory designed to expose selectionchange events to event handlers that are not necessarily instances of Document.