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