WEBELO
HTML Visualizer & DOM Library
Loading...
Searching...
No Matches
HTMLCollection Class Reference

Public Member Functions

Elementitem (const unsigned long &index) const
Elementoperator[] (const unsigned long &index) const
ElementnamedItem (const DOMString &name) const
Elementoperator[] (const DOMString &name) const
unsigned long length () const
void append (Element *node)
void insert (Element *node, const unsigned long &index)
void remove (Element *node)

Public Attributes

std::vector< Element * > element_list = {}

Detailed Description

Definition at line 882 of file Webelo.cpp.

Constructor & Destructor Documentation

◆ ~HTMLCollection()

HTMLCollection::~HTMLCollection ( )

Definition at line 4131 of file Webelo.cpp.

Member Function Documentation

◆ append()

void HTMLCollection::append ( Element * node)
inline

Definition at line 903 of file Webelo.cpp.

◆ insert()

void HTMLCollection::insert ( Element * node,
const unsigned long & index )
inline

Definition at line 907 of file Webelo.cpp.

◆ item()

Element * HTMLCollection::item ( const unsigned long & index) const

Definition at line 4104 of file Webelo.cpp.

◆ length()

unsigned long HTMLCollection::length ( ) const
nodiscard

Definition at line 4127 of file Webelo.cpp.

◆ namedItem()

Element * HTMLCollection::namedItem ( const DOMString & name) const

CHECK IF element IS IN THE HTML NAMESPACE CHECK IF element HAS A NAME ATTRIBUTE WHOSE VALUE IS name

Definition at line 4113 of file Webelo.cpp.

◆ operator[]() [1/2]

Element * HTMLCollection::operator[] ( const DOMString & name) const
inline

Definition at line 896 of file Webelo.cpp.

◆ operator[]() [2/2]

Element * HTMLCollection::operator[] ( const unsigned long & index) const
inline

Definition at line 890 of file Webelo.cpp.

◆ remove()

void HTMLCollection::remove ( Element * node)
inline

Definition at line 912 of file Webelo.cpp.

Member Data Documentation

◆ element_list

std::vector<Element*> HTMLCollection::element_list = {}

Definition at line 884 of file Webelo.cpp.


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