HTMLOptionElement
Extends: HTMLElement
See: https://developer.mozilla.org/en-US/docs/Web/API/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 :
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 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 | Number
The height of the element
htmlOptionElement.width : string | 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
stringhtmlOptionElement.setAttribute(name, value)
Param
Type
name
stringvalue
stringhtmlOptionElement.removeAttribute(name)
Param
Type
name
stringhtmlOptionElement.hasAttribute(name)
Param
Type
name
stringhtmlOptionElement.getAttributeNode(name)
Param
Type
name
stringhtmlOptionElement.setAttributeNode(newAttr)
Param
Type
newAttr
\*htmlOptionElement.removeAttributeNode(oldAttr)
Param
Type
oldAttr
\*htmlOptionElement.click()
htmlOptionElement.getElementsByClassName(name)
Param
Type
name
stringhtmlOptionElement.getElementsByTagName(name)
Param
Type
name
stringhtmlOptionElement.querySelector(selector)
Param
Type
selector
stringhtmlOptionElement.querySelectorAll(selector)
Param
Type
selector
stringhtmlOptionElement.getBoundingClientRect()
htmlOptionElement.insertAdjacentHTML(position, value)
Param
Type
position
value
stringhtmlOptionElement.insertAdjacentElement(position, node)
Param
Type
position
\*node
\*htmlOptionElement.insertAdjacentText(position, text)
Param
Type
position
\*text
\*htmlOptionElement.hasChildNodes()
htmlOptionElement.cloneNode(deep)
Param
Type
deep
booleanhtmlOptionElement.appendChild(child)
Param
Type
child
htmlOptionElement.insertBefore(child, before)
htmlOptionElement.replaceChild(newChild, oldChild)
htmlOptionElement.removeChild(child)
Param
Type
child
htmlOptionElement.remove()
htmlOptionElement.before(...nodes)
Param
Type
...nodes
htmlOptionElement.after(...nodes)
Param
Type
...nodes
htmlOptionElement.replaceWith(...nodes)
Param
Type
...nodes
htmlOptionElement.contains(node)
Param
Type
node
htmlOptionElement.addEventListener(eventName, callback, [capture])
Param
Type
Default
eventName
\*callback
\*[capture]
booleanfalsehtmlOptionElement.removeEventListener(eventName, callback, [capture])
Param
Type
Default
eventName
\*callback
\*[capture]
booleanfalsehtmlOptionElement.dispatchEvent(event)
Param
Type
event
\*