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