Document
open class Document :
Node,
GlobalEventHandlers,
DocumentAndElementEventHandlers,
NonElementParentNode,
DocumentOrShadowRoot,
ParentNode,
GeometryUtils
Exposes the JavaScript Document to Kotlin
Constructors
Properties
activeElement
open val activeElement: Element?
alinkColor
var alinkColor: String
all
open val all: HTMLAllCollection
anchors
open val anchors: HTMLCollection
applets
open val applets: HTMLCollection
bgColor
var bgColor: String
body
var body: HTMLElement?
characterSet
open val characterSet: String
charset
open val charset: String
childElementCount
open val childElementCount: Int
children
open val children: HTMLCollection
compatMode
open val compatMode: String
contentType
open val contentType: String
cookie
var cookie: String
currentScript
open val currentScript: HTMLOrSVGScriptElement?
defaultView
open val defaultView: Window?
designMode
var designMode: String
dir
var dir: String
doctype
open val doctype: DocumentType?
documentElement
open val documentElement: Element?
documentURI
open val documentURI: String
domain
var domain: String
embeds
open val embeds: HTMLCollection
fgColor
var fgColor: String
firstElementChild
open val firstElementChild: Element?
forms
open val forms: HTMLCollection
fullscreen
open val fullscreen: Boolean
fullscreenElement
open val fullscreenElement: Element?
fullscreenEnabled
open val fullscreenEnabled: Boolean
head
open val head: HTMLHeadElement?
images
open val images: HTMLCollection
implementation
open val implementation: DOMImplementation
inputEncoding
open val inputEncoding: String
lastElementChild
open val lastElementChild: Element?
lastModified
open val lastModified: String
linkColor
var linkColor: String
links
open val links: HTMLCollection
onblur
open var onblur: ((FocusEvent) -> dynamic)?
oncanplaythrough
open var oncanplaythrough: ((Event) -> dynamic)?
onclick
open var onclick: ((MouseEvent) -> dynamic)?
oncontextmenu
open var oncontextmenu: ((MouseEvent) -> dynamic)?
oncopy
open var oncopy: ((ClipboardEvent) -> dynamic)?
oncuechange
open var oncuechange: ((Event) -> dynamic)?
oncut
open var oncut: ((ClipboardEvent) -> dynamic)?
ondblclick
open var ondblclick: ((MouseEvent) -> dynamic)?
ondragenter
open var ondragenter: ((DragEvent) -> dynamic)?
ondragexit
open var ondragexit: ((DragEvent) -> dynamic)?
ondragleave
open var ondragleave: ((DragEvent) -> dynamic)?
ondragover
open var ondragover: ((DragEvent) -> dynamic)?
ondragstart
open var ondragstart: ((DragEvent) -> dynamic)?
ondurationchange
open var ondurationchange: ((Event) -> dynamic)?
onerror
open var onerror: ((dynamic, String, Int, Int, Any?) -> dynamic)?
onfocus
open var onfocus: ((FocusEvent) -> dynamic)?
onfullscreenchange
var onfullscreenchange: ((Event) -> dynamic)?
onfullscreenerror
var onfullscreenerror: ((Event) -> dynamic)?
ongotpointercapture
open var ongotpointercapture: ((PointerEvent) -> dynamic)?
oninput
open var oninput: ((InputEvent) -> dynamic)?
onkeydown
open var onkeydown: ((KeyboardEvent) -> dynamic)?
onkeypress
open var onkeypress: ((KeyboardEvent) -> dynamic)?
onkeyup
open var onkeyup: ((KeyboardEvent) -> dynamic)?
onloadeddata
open var onloadeddata: ((Event) -> dynamic)?
onloadedmetadata
open var onloadedmetadata: ((Event) -> dynamic)?
onloadstart
open var onloadstart: ((ProgressEvent) -> dynamic)?
onlostpointercapture
open var onlostpointercapture: ((PointerEvent) -> dynamic)?
onmousedown
open var onmousedown: ((MouseEvent) -> dynamic)?
onmouseenter
open var onmouseenter: ((MouseEvent) -> dynamic)?
onmouseleave
open var onmouseleave: ((MouseEvent) -> dynamic)?
onmousemove
open var onmousemove: ((MouseEvent) -> dynamic)?
onmouseout
open var onmouseout: ((MouseEvent) -> dynamic)?
onmouseover
open var onmouseover: ((MouseEvent) -> dynamic)?
onmouseup
open var onmouseup: ((MouseEvent) -> dynamic)?
onpaste
open var onpaste: ((ClipboardEvent) -> dynamic)?
onpointercancel
open var onpointercancel: ((PointerEvent) -> dynamic)?
onpointerdown
open var onpointerdown: ((PointerEvent) -> dynamic)?
onpointerenter
open var onpointerenter: ((PointerEvent) -> dynamic)?
onpointerleave
open var onpointerleave: ((PointerEvent) -> dynamic)?
onpointermove
open var onpointermove: ((PointerEvent) -> dynamic)?
onpointerout
open var onpointerout: ((PointerEvent) -> dynamic)?
onpointerover
open var onpointerover: ((PointerEvent) -> dynamic)?
onpointerup
open var onpointerup: ((PointerEvent) -> dynamic)?
onprogress
open var onprogress: ((ProgressEvent) -> dynamic)?
onratechange
open var onratechange: ((Event) -> dynamic)?
onreadystatechange
var onreadystatechange: ((Event) -> dynamic)?
ontimeupdate
open var ontimeupdate: ((Event) -> dynamic)?
onvolumechange
open var onvolumechange: ((Event) -> dynamic)?
onwheel
open var onwheel: ((WheelEvent) -> dynamic)?
origin
open val origin: String
plugins
open val plugins: HTMLCollection
readyState
open val readyState: DocumentReadyState
referrer
open val referrer: String
rootElement
open val rootElement: SVGSVGElement?
scripts
open val scripts: HTMLCollection
scrollingElement
open val scrollingElement: Element?
styleSheets
open val styleSheets: StyleSheetList
title
var title: String
URL
open val URL: String
vlinkColor
var vlinkColor: String
Functions
append
open fun append(vararg nodes: dynamic)
captureEvents
fun captureEvents()
caretPositionFromPoint
fun caretPositionFromPoint(
x: Double,
y: Double
): CaretPosition?
clear
fun clear()
close
fun close()
convertPointFromNode
open fun convertPointFromNode(
point: DOMPointInit,
from: dynamic,
options: ConvertCoordinateOptions
): DOMPoint
convertQuadFromNode
open fun convertQuadFromNode(
quad: dynamic,
from: dynamic,
options: ConvertCoordinateOptions
): DOMQuad
convertRectFromNode
open fun convertRectFromNode(
rect: DOMRectReadOnly,
from: dynamic,
options: ConvertCoordinateOptions
): DOMQuad
createAttribute
fun createAttribute(localName: String): Attr
createAttributeNS
fun createAttributeNS(
namespace: String?,
qualifiedName: String
): Attr
createCDATASection
fun createCDATASection(data: String): CDATASection
createComment
fun createComment(data: String): Comment
createDocumentFragment
fun createDocumentFragment(): DocumentFragment
createElement
fun createElement(
localName: String,
options: ElementCreationOptions = definedExternally
): Element
createElementNS
fun createElementNS(
namespace: String?,
qualifiedName: String,
options: ElementCreationOptions = definedExternally
): Element
createEvent
fun createEvent(interface: String): Event
createNodeIterator
fun createNodeIterator(
root: Node,
whatToShow: Int = definedExternally,
filter: NodeFilter? = definedExternally
): NodeIterator
fun createNodeIterator(
root: Node,
whatToShow: Int = definedExternally,
filter: ((Node) -> Short)? = definedExternally
): NodeIterator
createProcessingInstruction
fun createProcessingInstruction(
target: String,
data: String
): ProcessingInstruction
createRange
fun createRange(): Range
createTextNode
fun createTextNode(data: String): Text
createTouch
fun createTouch(
view: Window,
target: EventTarget,
identifier: Int,
pageX: Int,
pageY: Int,
screenX: Int,
screenY: Int
): Touch
createTreeWalker
fun createTreeWalker(
root: Node,
whatToShow: Int = definedExternally,
filter: NodeFilter? = definedExternally
): TreeWalker
fun createTreeWalker(
root: Node,
whatToShow: Int = definedExternally,
filter: ((Node) -> Short)? = definedExternally
): TreeWalker
elementFromPoint
fun elementFromPoint(x: Double, y: Double): Element?
elementsFromPoint
fun elementsFromPoint(x: Double, y: Double): Array<Element>
execCommand
fun execCommand(
commandId: String,
showUI: Boolean = definedExternally,
value: String = definedExternally
): Boolean
exitFullscreen
fun exitFullscreen(): Promise<Unit>
getBoxQuads
open fun getBoxQuads(options: BoxQuadOptions): Array<DOMQuad>
getElementById
open fun getElementById(elementId: String): Element?
getElementsByClassName
fun getElementsByClassName(
classNames: String
): HTMLCollection
getElementsByName
fun getElementsByName(elementName: String): NodeList
getElementsByTagName
fun getElementsByTagName(
qualifiedName: String
): HTMLCollection
getElementsByTagNameNS
fun getElementsByTagNameNS(
namespace: String?,
localName: String
): HTMLCollection
hasFocus
fun hasFocus(): Boolean
prepend
open fun prepend(vararg nodes: dynamic)
queryCommandEnabled
fun queryCommandEnabled(commandId: String): Boolean
queryCommandIndeterm
fun queryCommandIndeterm(commandId: String): Boolean
queryCommandState
fun queryCommandState(commandId: String): Boolean
queryCommandSupported
fun queryCommandSupported(commandId: String): Boolean
queryCommandValue
fun queryCommandValue(commandId: String): String
querySelector
open fun querySelector(selectors: String): Element?
querySelectorAll
open fun querySelectorAll(selectors: String): NodeList
releaseEvents
fun releaseEvents()
write
fun write(vararg text: String)
writeln
fun writeln(vararg text: String)
Companion Object Properties
ATTRIBUTE_NODE
val ATTRIBUTE_NODE: Short
CDATA_SECTION_NODE
val CDATA_SECTION_NODE: Short
COMMENT_NODE
val COMMENT_NODE: Short
DOCUMENT_FRAGMENT_NODE
val DOCUMENT_FRAGMENT_NODE: Short
DOCUMENT_NODE
val DOCUMENT_NODE: Short
DOCUMENT_POSITION_CONTAINED_BY
val DOCUMENT_POSITION_CONTAINED_BY: Short
DOCUMENT_POSITION_CONTAINS
val DOCUMENT_POSITION_CONTAINS: Short
DOCUMENT_POSITION_DISCONNECTED
val DOCUMENT_POSITION_DISCONNECTED: Short
DOCUMENT_POSITION_FOLLOWING
val DOCUMENT_POSITION_FOLLOWING: Short
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
val DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: Short
DOCUMENT_POSITION_PRECEDING
val DOCUMENT_POSITION_PRECEDING: Short
DOCUMENT_TYPE_NODE
val DOCUMENT_TYPE_NODE: Short
ELEMENT_NODE
val ELEMENT_NODE: Short
ENTITY_NODE
val ENTITY_NODE: Short
ENTITY_REFERENCE_NODE
val ENTITY_REFERENCE_NODE: Short
NOTATION_NODE
val NOTATION_NODE: Short
PROCESSING_INSTRUCTION_NODE
val PROCESSING_INSTRUCTION_NODE: Short
TEXT_NODE
val TEXT_NODE: Short
Extension Properties
Extension Functions
Inheritors
XMLDocument
Exposes the JavaScript XMLDocument to Kotlin
open class XMLDocument : Document