IDLeDOM
DOM interfaces automatically generated from WebIDL
Loading...
Searching...
No Matches
Wikimedia\IDLeDOM\Element Interface Reference
+ Inheritance diagram for Wikimedia\IDLeDOM\Element:

Public Member Functions

string getNamespaceURI ()
 
string getPrefix ()
 
string getLocalName ()
 
string getTagName ()
 
string getId ()
 
 setId (string $val)
 
string getClassName ()
 
 setClassName (string $val)
 
DOMTokenList getClassList ()
 
 setClassList (string $val)
 
string getSlot ()
 
 setSlot (string $val)
 
bool hasAttributes ()
 
NamedNodeMap getAttributes ()
 
list< string > getAttributeNames ()
 
string getAttribute (string $qualifiedName)
 
string getAttributeNS (?string $namespace, string $localName)
 
void setAttribute (string $qualifiedName, string $value)
 
void setAttributeNS (?string $namespace, string $qualifiedName, string $value)
 
void removeAttribute (string $qualifiedName)
 
void removeAttributeNS (?string $namespace, string $localName)
 
bool toggleAttribute (string $qualifiedName, ?bool $force=null)
 
bool hasAttribute (string $qualifiedName)
 
bool hasAttributeNS (?string $namespace, string $localName)
 
Attr null getAttributeNode (string $qualifiedName)
 
Attr null getAttributeNodeNS (?string $namespace, string $localName)
 
Attr null setAttributeNode ($attr)
 
Attr null setAttributeNodeNS ($attr)
 
Attr removeAttributeNode ($attr)
 
ShadowRoot attachShadow ($init)
 
ShadowRoot null getShadowRoot ()
 
Wikimedia IDLeDOM Element null closest (string $selectors)
 
bool matches (string $selectors)
 
bool webkitMatchesSelector (string $selectors)
 
HTMLCollection getElementsByTagName (string $qualifiedName)
 
HTMLCollection getElementsByTagNameNS (?string $namespace, string $localName)
 
HTMLCollection getElementsByClassName (string $classNames)
 
Wikimedia IDLeDOM Element null insertAdjacentElement (string $where, $element)
 
void insertAdjacentText (string $where, string $data)
 
string getOuterHTML ()
 
 setOuterHTML (?string $val)
 
void insertAdjacentHTML (string $position, string $text)
 
void setIdAttribute (string $qualifiedName, bool $isId)
 
void setIdAttributeNode ($attr, bool $isId)
 
void setIdAttributeNS (string $namespace, string $qualifiedName, bool $isId)
 
- Public Member Functions inherited from Wikimedia\IDLeDOM\Node
int getNodeType ()
 
string getNodeName ()
 
string getBaseURI ()
 
bool getIsConnected ()
 
Document null getOwnerDocument ()
 
Wikimedia IDLeDOM Node getRootNode ($options=null)
 
Node null getParentNode ()
 
Element null getParentElement ()
 
bool hasChildNodes ()
 
NodeList getChildNodes ()
 
Node null getFirstChild ()
 
Node null getLastChild ()
 
Node null getPreviousSibling ()
 
Node null getNextSibling ()
 
string getNodeValue ()
 
 setNodeValue (?string $val)
 
string getTextContent ()
 
 setTextContent (?string $val)
 
void normalize ()
 
Wikimedia IDLeDOM Node cloneNode (bool $deep=false)
 
bool isEqualNode ($otherNode)
 
bool isSameNode ($otherNode)
 
int compareDocumentPosition ($other)
 
bool contains ($other)
 
string lookupPrefix (?string $namespace)
 
string lookupNamespaceURI (?string $prefix)
 
bool isDefaultNamespace (?string $namespace)
 
Wikimedia IDLeDOM Node insertBefore ($node, $child=null)
 
Wikimedia IDLeDOM Node appendChild ($node)
 
Wikimedia IDLeDOM Node replaceChild ($node, $child)
 
Wikimedia IDLeDOM Node removeChild ($child)
 
- Public Member Functions inherited from Wikimedia\IDLeDOM\EventTarget
void addEventListener (string $type, $callback, $options=null)
 
void removeEventListener (string $type, $callback, $options=null)
 
bool dispatchEvent ($event)
 
- Public Member Functions inherited from Wikimedia\IDLeDOM\ChildNode
void before (... $nodes)
 
void after (... $nodes)
 
void replaceWith (... $nodes)
 
void remove ()
 
- Public Member Functions inherited from Wikimedia\IDLeDOM\InnerHTML
string getInnerHTML ()
 
 setInnerHTML (?string $val)
 
- Public Member Functions inherited from Wikimedia\IDLeDOM\NonDocumentTypeChildNode
Element null getPreviousElementSibling ()
 
Element null getNextElementSibling ()
 
- Public Member Functions inherited from Wikimedia\IDLeDOM\ParentNode
HTMLCollection getChildren ()
 
Element null getFirstElementChild ()
 
Element null getLastElementChild ()
 
int getChildElementCount ()
 
void prepend (... $nodes)
 
void append (... $nodes)
 
void replaceChildren (... $nodes)
 
Element null querySelector (string $selectors)
 
NodeList querySelectorAll (string $selectors)
 
- Public Member Functions inherited from Wikimedia\IDLeDOM\Slottable
HTMLSlotElement null getAssignedSlot ()
 

Additional Inherited Members

- Public Attributes inherited from Wikimedia\IDLeDOM\Node
const ELEMENT_NODE = 1
 
const ATTRIBUTE_NODE = 2
 
const TEXT_NODE = 3
 
const CDATA_SECTION_NODE = 4
 
const ENTITY_REFERENCE_NODE = 5
 
const ENTITY_NODE = 6
 
const PROCESSING_INSTRUCTION_NODE = 7
 
const COMMENT_NODE = 8
 
const DOCUMENT_NODE = 9
 
const DOCUMENT_TYPE_NODE = 10
 
const DOCUMENT_FRAGMENT_NODE = 11
 
const NOTATION_NODE = 12
 
const DOCUMENT_POSITION_DISCONNECTED = 0x01
 
const DOCUMENT_POSITION_PRECEDING = 0x02
 
const DOCUMENT_POSITION_FOLLOWING = 0x04
 
const DOCUMENT_POSITION_CONTAINS = 0x08
 
const DOCUMENT_POSITION_CONTAINED_BY = 0x10
 
const DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20
 

Member Function Documentation

◆ attachShadow()

ShadowRoot Wikimedia\IDLeDOM\Element::attachShadow ( $init)
Parameters
ShadowRootInit | associative-array$init
Returns
ShadowRoot

◆ closest()

Wikimedia IDLeDOM Element null Wikimedia\IDLeDOM\Element::closest ( string $selectors)
Parameters
string$selectors
Returns
\Wikimedia\IDLeDOM\Element|null

◆ getAttribute()

string Wikimedia\IDLeDOM\Element::getAttribute ( string $qualifiedName)
Parameters
string$qualifiedName
Returns
?string

◆ getAttributeNames()

list< string > Wikimedia\IDLeDOM\Element::getAttributeNames ( )
Returns
list<string>

◆ getAttributeNode()

Attr null Wikimedia\IDLeDOM\Element::getAttributeNode ( string $qualifiedName)
Parameters
string$qualifiedName
Returns
Attr|null

◆ getAttributeNodeNS()

Attr null Wikimedia\IDLeDOM\Element::getAttributeNodeNS ( ?string $namespace,
string $localName )
Parameters
?string$namespace
string$localName
Returns
Attr|null

◆ getAttributeNS()

string Wikimedia\IDLeDOM\Element::getAttributeNS ( ?string $namespace,
string $localName )
Parameters
?string$namespace
string$localName
Returns
?string

◆ getAttributes()

NamedNodeMap Wikimedia\IDLeDOM\Element::getAttributes ( )
Returns
NamedNodeMap

◆ getClassList()

DOMTokenList Wikimedia\IDLeDOM\Element::getClassList ( )
Returns
DOMTokenList

◆ getClassName()

string Wikimedia\IDLeDOM\Element::getClassName ( )
Returns
string

◆ getElementsByClassName()

HTMLCollection Wikimedia\IDLeDOM\Element::getElementsByClassName ( string $classNames)
Parameters
string$classNames
Returns
HTMLCollection

◆ getElementsByTagName()

HTMLCollection Wikimedia\IDLeDOM\Element::getElementsByTagName ( string $qualifiedName)
Parameters
string$qualifiedName
Returns
HTMLCollection

◆ getElementsByTagNameNS()

HTMLCollection Wikimedia\IDLeDOM\Element::getElementsByTagNameNS ( ?string $namespace,
string $localName )
Parameters
?string$namespace
string$localName
Returns
HTMLCollection

◆ getId()

string Wikimedia\IDLeDOM\Element::getId ( )
Returns
string

◆ getLocalName()

string Wikimedia\IDLeDOM\Element::getLocalName ( )
Returns
string

◆ getNamespaceURI()

string Wikimedia\IDLeDOM\Element::getNamespaceURI ( )
Returns
?string

◆ getOuterHTML()

string Wikimedia\IDLeDOM\Element::getOuterHTML ( )
Returns
string

◆ getPrefix()

string Wikimedia\IDLeDOM\Element::getPrefix ( )
Returns
?string

◆ getShadowRoot()

ShadowRoot null Wikimedia\IDLeDOM\Element::getShadowRoot ( )
Returns
ShadowRoot|null

◆ getSlot()

string Wikimedia\IDLeDOM\Element::getSlot ( )
Returns
string

◆ getTagName()

string Wikimedia\IDLeDOM\Element::getTagName ( )
Returns
string

◆ hasAttribute()

bool Wikimedia\IDLeDOM\Element::hasAttribute ( string $qualifiedName)
Parameters
string$qualifiedName
Returns
bool

◆ hasAttributeNS()

bool Wikimedia\IDLeDOM\Element::hasAttributeNS ( ?string $namespace,
string $localName )
Parameters
?string$namespace
string$localName
Returns
bool

◆ hasAttributes()

bool Wikimedia\IDLeDOM\Element::hasAttributes ( )
Returns
bool

◆ insertAdjacentElement()

Wikimedia IDLeDOM Element null Wikimedia\IDLeDOM\Element::insertAdjacentElement ( string $where,
$element )
Parameters
string$where
\Wikimedia\IDLeDOM\Element$element
Returns
\Wikimedia\IDLeDOM\Element|null

◆ insertAdjacentHTML()

void Wikimedia\IDLeDOM\Element::insertAdjacentHTML ( string $position,
string $text )
Parameters
string$position
string$text
Returns
void

◆ insertAdjacentText()

void Wikimedia\IDLeDOM\Element::insertAdjacentText ( string $where,
string $data )
Parameters
string$where
string$data
Returns
void

◆ matches()

bool Wikimedia\IDLeDOM\Element::matches ( string $selectors)
Parameters
string$selectors
Returns
bool

◆ removeAttribute()

void Wikimedia\IDLeDOM\Element::removeAttribute ( string $qualifiedName)
Parameters
string$qualifiedName
Returns
void

◆ removeAttributeNode()

Attr Wikimedia\IDLeDOM\Element::removeAttributeNode ( $attr)
Parameters
Attr$attr
Returns
Attr

◆ removeAttributeNS()

void Wikimedia\IDLeDOM\Element::removeAttributeNS ( ?string $namespace,
string $localName )
Parameters
?string$namespace
string$localName
Returns
void

◆ setAttribute()

void Wikimedia\IDLeDOM\Element::setAttribute ( string $qualifiedName,
string $value )
Parameters
string$qualifiedName
string$value
Returns
void

◆ setAttributeNode()

Attr null Wikimedia\IDLeDOM\Element::setAttributeNode ( $attr)
Parameters
Attr$attr
Returns
Attr|null

◆ setAttributeNodeNS()

Attr null Wikimedia\IDLeDOM\Element::setAttributeNodeNS ( $attr)
Parameters
Attr$attr
Returns
Attr|null

◆ setAttributeNS()

void Wikimedia\IDLeDOM\Element::setAttributeNS ( ?string $namespace,
string $qualifiedName,
string $value )
Parameters
?string$namespace
string$qualifiedName
string$value
Returns
void

◆ setClassList()

Wikimedia\IDLeDOM\Element::setClassList ( string $val)
Parameters
string$val

◆ setClassName()

Wikimedia\IDLeDOM\Element::setClassName ( string $val)
Parameters
string$val

◆ setId()

Wikimedia\IDLeDOM\Element::setId ( string $val)
Parameters
string$val

◆ setIdAttribute()

void Wikimedia\IDLeDOM\Element::setIdAttribute ( string $qualifiedName,
bool $isId )
Parameters
string$qualifiedName
bool$isId
Returns
void

◆ setIdAttributeNode()

void Wikimedia\IDLeDOM\Element::setIdAttributeNode ( $attr,
bool $isId )
Parameters
Attr$attr
bool$isId
Returns
void

◆ setIdAttributeNS()

void Wikimedia\IDLeDOM\Element::setIdAttributeNS ( string $namespace,
string $qualifiedName,
bool $isId )
Parameters
string$namespace
string$qualifiedName
bool$isId
Returns
void

◆ setOuterHTML()

Wikimedia\IDLeDOM\Element::setOuterHTML ( ?string $val)
Parameters
?string$val

◆ setSlot()

Wikimedia\IDLeDOM\Element::setSlot ( string $val)
Parameters
string$val

◆ toggleAttribute()

bool Wikimedia\IDLeDOM\Element::toggleAttribute ( string $qualifiedName,
?bool $force = null )
Parameters
string$qualifiedName
?bool$force
Returns
bool

◆ webkitMatchesSelector()

bool Wikimedia\IDLeDOM\Element::webkitMatchesSelector ( string $selectors)
Parameters
string$selectors
Returns
bool

The documentation for this interface was generated from the following file: