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