Edit in GitHubLog an issue

window.Attr

See: https://developer.mozilla.org/en-US/docs/Web/API/Attr

nodeName : string#

Read only

localName : string#

Read only

name : string#

Read only

specified : boolean#

Read only

value : *#

nodeType : number#

Read only

nodeValue : *#

ownerElement : Element#

Read only

contentEditable#

Read only

isConnected : boolean#

Read only

parentNode : Node#

Read only

parentElement : Element#

Read only

firstChild : Node#

Read only

lastChild : Node#

Read only

previousSibling : Node#

Read only

nextSibling : Node#

Read only

firstElementChild : Node#

Read only

lastElementChild : Node#

Read only

previousElementSibling : Node#

Read only

nextElementSibling : Node#

Read only

textContent : string#

childNodes : NodeList#

Read only

children : HTMLCollection#

Read only

ownerDocument#

Read only

attributes#

Read only

remove()#

hasChildNodes()#

Returns: boolean

cloneNode(deep)#

Returns: Node

ParamType
deepboolean

appendChild(child)#

Returns: Node

ParamType
childNode

insertBefore(child, before)#

Returns: Node

ParamType
childNode
beforeNode

replaceChild(newChild, oldChild)#

Returns: Node

ParamType
newChildNode
oldChildNode

removeChild(child)#

Returns: Node

ParamType
childNode

before(...nodes)#

ParamType
...nodesArray.<Node>

after(...nodes)#

ParamType
...nodesArray.<Node>

replaceWith(...nodes)#

ParamType
...nodesArray.<Node>

contains(node)#

ParamType
nodeNode

addEventListener(eventName, callback, [capture])#

ParamTypeDefault
eventName*
callback*
[capture]booleanfalse

removeEventListener(eventName, callback, [capture])#

ParamTypeDefault
eventName*
callback*
[capture]booleanfalse

dispatchEvent(event)#

ParamType
event*

Attr#

Attr(document, nodeName)#

Creates an instance of Attr.

ParamType
documentDocument
nodeNamestring
Copyright © 2021 Adobe. All rights reserved.