HTMLHtmlElement
Extends: HTMLElement
See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHtmlElement
-
- new HTMLHtmlElement(document, nodeName, namespaceURI)
- .dataset
- .nodeName :
string - .localName :
string - .tagName :
string - .nodeType :
number - .namespaceURI :
string - .id :
string - .tabIndex :
number - .className :
string - .attributes :
NamedNodeMap - .style :
Style - .clientLeft :
number - .clientTop :
number - .clientWidth :
number - .clientHeight :
number - .height :
string|Number - .width :
string|Number - .offsetParent :
Element - .offsetLeft :
number - .offsetTop :
number - .offsetWidth :
number - .offsetHeight :
number - .scrollLeft :
number - .scrollTop :
number - .scrollWidth :
number - .scrollHeight :
number - .uxpContainer :
UXPContainer - .disabled :
boolean - .innerHTML :
string - .outerHTML :
string - .contentEditable
- .isConnected :
boolean - .parentNode :
Node - .parentElement :
Element - .firstChild :
Node - .lastChild :
Node - .previousSibling :
Node - .nextSibling :
Node - .firstElementChild :
Node - .lastElementChild :
Node - .previousElementSibling :
Node - .nextElementSibling :
Node - .textContent :
string - .childNodes :
NodeList - .children :
HTMLCollection - .ownerDocument
- .scrollIntoView()
- .scrollIntoViewIfNeeded()
- .focus()
- .blur()
- .getAttribute(name)
- .setAttribute(name, value)
- .removeAttribute(name)
- .hasAttribute(name)
- .getAttributeNode(name)
- .setAttributeNode(newAttr)
- .removeAttributeNode(oldAttr)
- .click()
- .getElementsByClassName(name)
- .getElementsByTagName(name)
- .querySelector(selector)
- .querySelectorAll(selector)
- .getBoundingClientRect()
- .insertAdjacentHTML(position, value)
- .insertAdjacentElement(position, node)
- .insertAdjacentText(position, text)
- .hasChildNodes()
- .cloneNode(deep)
- .appendChild(child)
- .insertBefore(child, before)
- .replaceChild(newChild, oldChild)
- .removeChild(child)
- .remove()
- .before(...nodes)
- .after(...nodes)
- .replaceWith(...nodes)
- .contains(node)
- .addEventListener(eventName, callback, [capture])
- .removeEventListener(eventName, callback, [capture])
- .dispatchEvent(event)
new HTMLHtmlElement(document, nodeName, namespaceURI)
Creates an instance of HTMLHtmlElement.
Param
Type
document
\*nodeName
\*namespaceURI
\*htmlHtmlElement.dataset
Access to all the custom data attributes (data-*) set.
See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset
htmlHtmlElement.nodeName : string
Read only
htmlHtmlElement.localName : string
Read only
htmlHtmlElement.tagName : string
Read only
htmlHtmlElement.nodeType : number
Read only
htmlHtmlElement.namespaceURI : string
Read only
htmlHtmlElement.id : string
htmlHtmlElement.tabIndex : number
htmlHtmlElement.className : string
htmlHtmlElement.attributes : NamedNodeMap
Read only
htmlHtmlElement.style : Style
Read only
htmlHtmlElement.clientLeft : number
Read only
htmlHtmlElement.clientTop : number
Read only
htmlHtmlElement.clientWidth : number
Read only
htmlHtmlElement.clientHeight : number
Read only
htmlHtmlElement.height : string | Number
The height of the element
htmlHtmlElement.width : string | Number
The width of the element
htmlHtmlElement.offsetParent : Element
Read only
htmlHtmlElement.offsetLeft : number
Read only
htmlHtmlElement.offsetTop : number
Read only
htmlHtmlElement.offsetWidth : number
Read only
htmlHtmlElement.offsetHeight : number
Read only
htmlHtmlElement.scrollLeft : number
htmlHtmlElement.scrollTop : number
htmlHtmlElement.scrollWidth : number
Read only
htmlHtmlElement.scrollHeight : number
Read only
htmlHtmlElement.uxpContainer : UXPContainer
Overrides: uxpContainer
Read only
htmlHtmlElement.disabled : boolean
htmlHtmlElement.innerHTML : string
htmlHtmlElement.outerHTML : string
htmlHtmlElement.contentEditable
Read only
htmlHtmlElement.isConnected : boolean
Read only
htmlHtmlElement.parentNode : Node
Read only
htmlHtmlElement.parentElement : Element
Read only
htmlHtmlElement.firstChild : Node
Read only
htmlHtmlElement.lastChild : Node
Read only
htmlHtmlElement.previousSibling : Node
Read only
htmlHtmlElement.nextSibling : Node
Read only
htmlHtmlElement.firstElementChild : Node
Read only
htmlHtmlElement.lastElementChild : Node
Read only
htmlHtmlElement.previousElementSibling : Node
Read only
htmlHtmlElement.nextElementSibling : Node
Read only
htmlHtmlElement.textContent : string
htmlHtmlElement.childNodes : NodeList
Read only
htmlHtmlElement.children : HTMLCollection
Read only
htmlHtmlElement.ownerDocument
Read only
htmlHtmlElement.scrollIntoView()
htmlHtmlElement.scrollIntoViewIfNeeded()
htmlHtmlElement.focus()
htmlHtmlElement.blur()
htmlHtmlElement.getAttribute(name)
Param
Type
name
stringhtmlHtmlElement.setAttribute(name, value)
Param
Type
name
stringvalue
stringhtmlHtmlElement.removeAttribute(name)
Param
Type
name
stringhtmlHtmlElement.hasAttribute(name)
Param
Type
name
stringhtmlHtmlElement.getAttributeNode(name)
Param
Type
name
stringhtmlHtmlElement.setAttributeNode(newAttr)
Param
Type
newAttr
\*htmlHtmlElement.removeAttributeNode(oldAttr)
Param
Type
oldAttr
\*htmlHtmlElement.click()
htmlHtmlElement.getElementsByClassName(name)
Param
Type
name
stringhtmlHtmlElement.getElementsByTagName(name)
Param
Type
name
stringhtmlHtmlElement.querySelector(selector)
Param
Type
selector
stringhtmlHtmlElement.querySelectorAll(selector)
Param
Type
selector
stringhtmlHtmlElement.getBoundingClientRect()
htmlHtmlElement.insertAdjacentHTML(position, value)
Param
Type
position
value
stringhtmlHtmlElement.insertAdjacentElement(position, node)
Param
Type
position
\*node
\*htmlHtmlElement.insertAdjacentText(position, text)
Param
Type
position
\*text
\*htmlHtmlElement.hasChildNodes()
htmlHtmlElement.cloneNode(deep)
Param
Type
deep
booleanhtmlHtmlElement.appendChild(child)
Param
Type
child
htmlHtmlElement.insertBefore(child, before)
htmlHtmlElement.replaceChild(newChild, oldChild)
htmlHtmlElement.removeChild(child)
Param
Type
child
htmlHtmlElement.remove()
htmlHtmlElement.before(...nodes)
Param
Type
...nodes
htmlHtmlElement.after(...nodes)
Param
Type
...nodes
htmlHtmlElement.replaceWith(...nodes)
Param
Type
...nodes
htmlHtmlElement.contains(node)
Param
Type
node
htmlHtmlElement.addEventListener(eventName, callback, [capture])
Param
Type
Default
eventName
\*callback
\*[capture]
booleanfalsehtmlHtmlElement.removeEventListener(eventName, callback, [capture])
Param
Type
Default
eventName
\*callback
\*[capture]
booleanfalsehtmlHtmlElement.dispatchEvent(event)
Param
Type
event
\*