Edit in GitHubLog an issue

window.Document

See: https://developer.mozilla.org/en-US/docs/Web/API/Document

onLine : boolean#

Read only Indicates if the computer is online

nodeName : string#

Read only

nodeType : number#

Read only

uxpContainer ⇒ UXPContainer#

Returns: UXPContainer

activeElement : Node#

Read only

documentElement : Document#

Read only

head : HTMLHeadElement#

Read only

body : HTMLBodyElement#

Read only

clipboard : Clippoard#

Read only

styleSheets : StyleSheetList#

Read only

contentEditable#

Read only

isConnected : boolean#

Read only

parentNode : Node#

Read only

parentElement : Element#

Read only

firstChild : Node#

Read only

lastChild : Node#

Read only

previousSibling : Node#

Read only

nextSibling : Node#

Read only

firstElementChild : Node#

Read only

lastElementChild : Node#

Read only

previousElementSibling : Node#

Read only

nextElementSibling : Node#

Read only

textContent : string#

childNodes : NodeList#

Read only

children : HTMLCollection#

Read only

ownerDocument#

Read only

attributes#

Read only

createElement(name)#

Returns: Element

ParamType
namestring

createElementNS(ns, name)#

Returns: Element

ParamType
nsstring
namestring

createAttribute(nodeName)#

Returns: Attr
See: https://developer.mozilla.org/en-US/docs/Web/API/Document/createAttribute

ParamType
nodeNamestring

createTextNode([text])#

Returns: Text

ParamTypeDefault
[text]string"\"\""

createComment([comment])#

Returns: Comment

ParamTypeDefault
[comment]string"\"\""

createDocumentFragment()#

Returns: DocumentFragment

cloneNode(deep)#

Returns: Document

ParamType
deepboolean

adoptNode(externalNode, deep)#

Returns: Node

ParamType
externalNodeNode
deepboolean

importNode(externalNode, deep)#

Returns: Node

ParamType
externalNodeNode
deepboolean

querySelector(selector)#

Returns: Node

ParamType
selectorstring

querySelectorAll(selector)#

Returns: NodeList

ParamType
selectorstring

getElementsByClassName(name)#

Returns: NodeList

ParamType
namestring

getElementsByTagName(name)#

Returns: NodeList

ParamType
namestring

getElementById(id)#

Returns: Element

ParamType
idstring

hasChildNodes()#

Returns: boolean

appendChild(child)#

Returns: Node

ParamType
childNode

insertBefore(child, before)#

Returns: Node

ParamType
childNode
beforeNode

replaceChild(newChild, oldChild)#

Returns: Node

ParamType
newChildNode
oldChildNode

removeChild(child)#

Returns: Node

ParamType
childNode

remove()#

before(...nodes)#

ParamType
...nodesArray.<Node>

after(...nodes)#

ParamType
...nodesArray.<Node>

replaceWith(...nodes)#

ParamType
...nodesArray.<Node>

contains(node)#

ParamType
nodeNode

addEventListener(eventName, callback, [capture])#

ParamTypeDefault
eventName*
callback*
[capture]booleanfalse

removeEventListener(eventName, callback, [capture])#

ParamTypeDefault
eventName*
callback*
[capture]booleanfalse

dispatchEvent(event)#

ParamType
event*

Document#

Document()#

Creates an instance of Document.

Copyright © 2021 Adobe. All rights reserved.