Document$Typings extension
Properties
-
addEventListener
→ ({void Function<K$>(DocumentEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})
-
Overload accessor: $1, $2
no setter
-
adoptNode
↔ T Function<T extends Node>(T)
-
getter/setter pair
-
alinkColor
↔ String
-
Sets or gets the color of all active links in the document.
@deprecated
getter/setter pair
-
all
→ HTMLAllCollection
-
Returns a reference to the collection of elements contained by the object.
no setter
-
anchors
→ HTMLCollectionOf<HTMLAnchorElement>
-
Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
no setter
-
applets
→ HTMLCollection
-
Retrieves a collection of all applet objects in the document.
no setter
-
bgColor
↔ String
-
Deprecated. Sets or retrieves a value that indicates the background color behind the object.
@deprecated
getter/setter pair
-
body
↔ HTMLElement
-
Specifies the beginning and end of the document body.
getter/setter pair
-
captureEvents
↔ void Function()
-
getter/setter pair
-
caretRangeFromPoint
↔ Range? Function(num, num)
-
getter/setter pair
-
characterSet
→ String
-
Returns document's encoding.
no setter
-
charset
→ String
-
Gets or sets the character set used to encode the object.
no setter
-
clear
↔ void Function()
-
getter/setter pair
-
close
↔ void Function()
-
getter/setter pair
-
compatMode
→ String
-
Gets a value that indicates whether standards-compliant mode is switched on for the object.
no setter
-
contentType
→ String
-
Returns document's content type.
no setter
-
cookie
↔ String
-
Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned.
getter/setter pair
-
createAttribute
↔ Attr Function(String)
-
getter/setter pair
-
createAttributeNS
↔ Attr Function(String, [String?])
-
getter/setter pair
-
createCDATASection
↔ CDATASection Function(String)
-
getter/setter pair
-
getter/setter pair
-
createDocumentFragment
↔ DocumentFragment Function()
-
getter/setter pair
-
createElement
→ ({K$ Function<K$ extends Element>(HTMLElementTagNameMap<K$> tagName, [ElementCreationOptions? options]) $1, K$ Function<K$ extends Element>(HTMLElementDeprecatedTagNameMap<K$> tagName, [ElementCreationOptions? options]) $2, HTMLElement Function(String tagName, [ElementCreationOptions? options]) $3})
-
Overload accessor: $1, $2, $3
no setter
-
createElementNS
→ ({HTMLElement Function(String namespaceURI, String qualifiedName) $1, K$ Function<K$ extends SVGElement>(String namespaceURI, SVGElementTagNameMap<K$> qualifiedName) $2, SVGElement Function(String namespaceURI, String qualifiedName) $3, K$ Function<K$ extends Element>(String namespaceURI, MathMLElementTagNameMap<K$> qualifiedName) $4, MathMLElement Function(String namespaceURI, String qualifiedName) $5, Element Function(String? namespaceURI, String qualifiedName, [ElementCreationOptions? options]) $6, Element Function(String? namespace, String qualifiedName, [Object? options]) $7})
-
Overload accessor: $1, $2, $3, $4, $5, $6, $7
no setter
-
createEvent
→ ({AnimationEvent Function(String eventInterface) $1, DeviceMotionEvent Function(String eventInterface) $10, DeviceOrientationEvent Function(String eventInterface) $11, DragEvent Function(String eventInterface) $12, ErrorEvent Function(String eventInterface) $13, Event Function(String eventInterface) $14, Event Function(String eventInterface) $15, FocusEvent Function(String eventInterface) $16, FontFaceSetLoadEvent Function(String eventInterface) $17, FormDataEvent Function(String eventInterface) $18, GamepadEvent Function(String eventInterface) $19, AnimationPlaybackEvent Function(String eventInterface) $2, HashChangeEvent Function(String eventInterface) $20, IDBVersionChangeEvent Function(String eventInterface) $21, InputEvent Function(String eventInterface) $22, KeyboardEvent Function(String eventInterface) $23, MIDIConnectionEvent Function(String eventInterface) $24, MIDIMessageEvent Function(String eventInterface) $25, MediaEncryptedEvent Function(String eventInterface) $26, MediaKeyMessageEvent Function(String eventInterface) $27, MediaQueryListEvent Function(String eventInterface) $28, MediaStreamTrackEvent Function(String eventInterface) $29, AudioProcessingEvent Function(String eventInterface) $3, MessageEvent Function(String eventInterface) $30, MouseEvent Function(String eventInterface) $31, MouseEvent Function(String eventInterface) $32, MutationEvent Function(String eventInterface) $33, MutationEvent Function(String eventInterface) $34, OfflineAudioCompletionEvent Function(String eventInterface) $35, PageTransitionEvent Function(String eventInterface) $36, PaymentMethodChangeEvent Function(String eventInterface) $37, PaymentRequestUpdateEvent Function(String eventInterface) $38, PictureInPictureEvent Function(String eventInterface) $39, BeforeUnloadEvent Function(String eventInterface) $4, PointerEvent Function(String eventInterface) $40, PopStateEvent Function(String eventInterface) $41, ProgressEvent<EventTarget> Function(String eventInterface) $42, PromiseRejectionEvent Function(String eventInterface) $43, RTCDTMFToneChangeEvent Function(String eventInterface) $44, RTCDataChannelEvent Function(String eventInterface) $45, RTCErrorEvent Function(String eventInterface) $46, RTCPeerConnectionIceErrorEvent Function(String eventInterface) $47, RTCPeerConnectionIceEvent Function(String eventInterface) $48, RTCTrackEvent Function(String eventInterface) $49, BlobEvent Function(String eventInterface) $5, SecurityPolicyViolationEvent Function(String eventInterface) $50, SpeechSynthesisErrorEvent Function(String eventInterface) $51, SpeechSynthesisEvent Function(String eventInterface) $52, StorageEvent Function(String eventInterface) $53, SubmitEvent Function(String eventInterface) $54, ToggleEvent Function(String eventInterface) $55, TouchEvent Function(String eventInterface) $56, TrackEvent Function(String eventInterface) $57, TransitionEvent Function(String eventInterface) $58, UIEvent Function(String eventInterface) $59, ClipboardEvent Function(String eventInterface) $6, UIEvent Function(String eventInterface) $60, WebGLContextEvent Function(String eventInterface) $61, WheelEvent Function(String eventInterface) $62, Event Function(String eventInterface) $63, CloseEvent Function(String eventInterface) $7, CompositionEvent Function(String eventInterface) $8, CustomEvent Function(String eventInterface) $9})
-
Overload accessor: $1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $50, $51, $52, $53, $54, $55, $56, $57, $58, $59, $60, $61, $62, $63
no setter
-
createNodeIterator
↔ NodeIterator Function(Node, [num?, Object?])
-
getter/setter pair
-
createProcessingInstruction
↔ ProcessingInstruction Function(String, String)
-
getter/setter pair
-
createRange
↔ Range Function()
-
getter/setter pair
-
createTextNode
↔ Text Function(String)
-
getter/setter pair
-
createTreeWalker
↔ TreeWalker Function(Node, [num?, Object?])
-
getter/setter pair
-
currentScript
→ HTMLOrSVGScriptElement?
-
Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.
no setter
-
defaultView
→ _Intersection1?
-
Returns the Window object of the active document.
no setter
-
designMode
↔ String
-
Sets or gets a value that indicates whether the document can be edited.
getter/setter pair
-
dir
↔ String
-
Sets or retrieves a value that indicates the reading order of the object.
getter/setter pair
-
doctype
→ DocumentType?
-
Gets an object representing the document type declaration associated with the current document.
no setter
-
documentElement
→ HTMLElement
-
Gets a reference to the root node of the document.
no setter
-
documentURI
→ String
-
Returns document's URL.
no setter
-
domain
↔ String
-
Sets or gets the security domain of the document.
@deprecated
getter/setter pair
-
embeds
→ HTMLCollectionOf<HTMLEmbedElement>
-
Retrieves a collection of all embed objects in the document.
no setter
-
execCommand
↔ bool Function(String, [bool?, String?])
-
getter/setter pair
-
exitFullscreen
↔ Future<void> Function()
-
getter/setter pair
-
exitPictureInPicture
↔ Future<void> Function()
-
getter/setter pair
-
exitPointerLock
↔ void Function()
-
getter/setter pair
-
fgColor
↔ String
-
Sets or gets the foreground (text) color of the document.
@deprecated
getter/setter pair
-
forms
→ HTMLCollectionOf<HTMLFormElement>
-
Retrieves a collection, in source order, of all form objects in the document.
no setter
-
fullscreen
→ bool
-
no setter
-
fullscreenEnabled
→ bool
-
Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise.
no setter
-
getElementById
↔ HTMLElement? Function(String)
-
getter/setter pair
-
getElementsByClassName
↔ HTMLCollectionOf<Element> Function(String)
-
getter/setter pair
-
getElementsByName
↔ NodeListOf<HTMLElement> Function(String)
-
getter/setter pair
-
getElementsByTagName
→ ({HTMLCollectionOf<K$> Function<K$ extends Element>(HTMLElementTagNameMap<K$> qualifiedName) $1, HTMLCollectionOf<Element> Function(String qualifiedName) $2})
-
Overload accessor: $1, $2
no setter
-
getElementsByTagNameNS
→ ({HTMLCollectionOf<HTMLElement> Function(String namespaceURI, String localName) $1, HTMLCollectionOf<SVGElement> Function(String namespaceURI, String localName) $2, HTMLCollectionOf<MathMLElement> Function(String namespaceURI, String localName) $3, HTMLCollectionOf<Element> Function(String localName, [String? namespace]) $4})
-
Overload accessor: $1, $2, $3, $4
no setter
-
getSelection
↔ Selection? Function()
-
getter/setter pair
-
hasFocus
↔ bool Function()
-
getter/setter pair
-
hasStorageAccess
↔ Future<bool> Function()
-
getter/setter pair
-
head
→ HTMLHeadElement
-
Returns the head element.
no setter
-
hidden
→ bool
-
MDN Reference
no setter
-
images
→ HTMLCollectionOf<HTMLImageElement>
-
Retrieves a collection, in source order, of img objects in the document.
no setter
-
implementation
→ DOMImplementation
-
Gets the implementation object of the current document.
no setter
-
importNode
↔ T Function<T extends Node>(T, [bool?])
-
getter/setter pair
-
inputEncoding
→ String
-
Returns the character encoding used to create the webpage that is loaded into the document object.
no setter
-
lastModified
→ String
-
Gets the date that the page was last modified, if the page supplies one.
no setter
-
linkColor
↔ String
-
Sets or gets the color of the document links.
@deprecated
getter/setter pair
-
links
→ HTMLCollectionOf<HTMLElement>
-
Retrieves a collection of all a objects that specify the href property and all area objects in the document.
no setter
-
location
↔ Location
-
Contains information about the current URL.
getter/setter pair
-
onfullscreenchange
↔ dynamic Function(Event)?
-
MDN Reference
getter/setter pair
-
onfullscreenerror
↔ dynamic Function(Event)?
-
MDN Reference
getter/setter pair
-
onpointerlockchange
↔ dynamic Function(Event)?
-
MDN Reference
getter/setter pair
-
onpointerlockerror
↔ dynamic Function(Event)?
-
MDN Reference
getter/setter pair
-
onreadystatechange
↔ dynamic Function(Event)?
-
Fires when the state of the object has changed.
@param ev The event
getter/setter pair
-
onvisibilitychange
↔ dynamic Function(Event)?
-
MDN Reference
getter/setter pair
-
open
→ ({Document Function([String? unused1, String? unused2]) $1, WindowProxy? Function(Object url, String name, String features) $2})
-
Overload accessor: $1, $2
no setter
-
ownerDocument
→ dynamic
-
Returns the node document. Returns null for documents.
no setter
-
pictureInPictureEnabled
→ bool
-
MDN Reference
no setter
-
plugins
→ HTMLCollectionOf<HTMLEmbedElement>
-
Return an HTMLCollection of the embed elements in the Document.
no setter
-
queryCommandEnabled
↔ bool Function(String)
-
getter/setter pair
-
queryCommandIndeterm
↔ bool Function(String)
-
getter/setter pair
-
queryCommandState
↔ bool Function(String)
-
getter/setter pair
-
queryCommandSupported
↔ bool Function(String)
-
getter/setter pair
-
queryCommandValue
↔ String Function(String)
-
getter/setter pair
-
readyState
→ DocumentReadyState
-
Retrieves a value that indicates the current state of the object.
no setter
-
referrer
→ String
-
Gets the URL of the location that referred the user to the current page.
no setter
-
releaseEvents
↔ void Function()
-
getter/setter pair
-
removeEventListener
→ ({void Function<K$>(DocumentEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})
-
Overload accessor: $1, $2
no setter
-
requestStorageAccess
↔ Future<void> Function()
-
getter/setter pair
-
rootElement
→ SVGSVGElement?
-
no setter
-
scripts
→ HTMLCollectionOf<HTMLScriptElement>
-
Retrieves a collection of all script objects in the document.
no setter
-
scrollingElement
→ Element?
-
MDN Reference
no setter
-
timeline
→ DocumentTimeline
-
MDN Reference
no setter
-
title
↔ String
-
Contains the title of the document.
getter/setter pair
-
url
→ String
-
Sets or gets the URL for the current document.
no setter
-
visibilityState
→ DocumentVisibilityState
-
MDN Reference
no setter
-
vlinkColor
↔ String
-
Sets or gets the color of the links that the user has visited.
@deprecated
getter/setter pair
-
write
↔ void Function([Iterable?])
-
getter/setter pair
-
writeln
↔ void Function([Iterable?])
-
getter/setter pair