window.Document
See: Web APIs - Document
Document()
Creates an instance of Document.
onLine : boolean
Read only Indicates if the computer is online
nodeName : string
Read only
nodeType : number
Read only
uxpContainer : UXPContainer
Read only
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
stringcreateElementNS(ns, name)
Returns: Element
stringstringcreateEvent(eventType)
stringcreateAttribute(nodeName)
Returns: Attr
See: https://developer.mozilla.org/en-US/docs/Web/API/Document/createAttribute
stringcreateTextNode([text=])
Returns: Text
stringcreateComment([comment])
Returns: Comment
string"\"\""createDocumentFragment()
Returns: DocumentFragment
createTreeWalker(root, whatToShow, filter)
[ This feature is behind a feature flag. You must turn on enableSWCSupport in the featureFlags section of plugin manifest to use the same ]
This represents the nodes of a document subtree and a position within them
Returns: TreeWalker
NodenumberNodeFiltercloneNode(deep)
Returns: Document
booleanadoptNode(externalNode, deep)
Returns: Node
NodebooleanimportNode(externalNode, deep)
Returns: Node
NodebooleanquerySelector(selector)
Returns: Node
stringquerySelectorAll(selector)
Returns: NodeList
stringgetElementsByClassName(name)
Returns: NodeList
stringgetElementsByTagName(name)
Returns: NodeList
stringgetElementById(id)
Returns: Element
stringhasChildNodes()
Returns: boolean
appendChild(child)
Returns: Node
NodeinsertBefore(child, before)
Returns: Node
NodeNodereplaceChild(newChild, oldChild)
Returns: Node
NodeNoderemoveChild(child)
Returns: Node
Noderemove()
before(...nodes)
Array<Node>after(...nodes)
Array<Node>replaceWith(...nodes)
Array<Node>contains(node)
NodegetRootNode(options)
Returns: Node - root node
ObjectaddEventListener(eventName, callback, options)
See: EventTarget - addEventListener
**boolean | ObjectremoveEventListener(eventName, callback, options)
See: EventTarget - removeEventListener
**boolean | ObjectdispatchEvent(event)
*