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

Public Member Functions

std::optional< DOMString > item (unsigned long index)
bool contains (DOMString token)
void add (std::vector< DOMString > tokens)
void remove (std::vector< DOMString > tokens)
bool toggle (DOMString token, std::optional< bool > force)
bool replace (DOMString token, DOMString newToken)
DOMString getvalue ()
void setvalue (DOMString value)
bool supports (DOMString token)
unsigned long length ()
bool validate (DOMString token)
void update ()
DOMString serialize ()
 DOMTokenList (Element *element=nullptr, Attr *attribute=nullptr)

Public Attributes

std::set< DOMString > list = {}
ElementassociatedElement = nullptr
AttrassociatedAttribute = nullptr

Detailed Description

Definition at line 1405 of file Webelo.cpp.

Constructor & Destructor Documentation

◆ DOMTokenList()

DOMTokenList::DOMTokenList ( Element * element = nullptr,
Attr * attribute = nullptr )
inline

Definition at line 1463 of file Webelo.cpp.

Member Function Documentation

◆ add()

void DOMTokenList::add ( std::vector< DOMString > tokens)

Definition at line 5186 of file Webelo.cpp.

◆ contains()

bool DOMTokenList::contains ( DOMString token)
inline

Definition at line 1413 of file Webelo.cpp.

◆ getvalue()

DOMString DOMTokenList::getvalue ( )
inline

Definition at line 1426 of file Webelo.cpp.

◆ item()

std::optional< DOMString > DOMTokenList::item ( unsigned long index)
inline

Definition at line 1407 of file Webelo.cpp.

◆ length()

unsigned long DOMTokenList::length ( )
inline

Definition at line 1440 of file Webelo.cpp.

◆ remove()

void DOMTokenList::remove ( std::vector< DOMString > tokens)

Definition at line 5198 of file Webelo.cpp.

◆ replace()

bool DOMTokenList::replace ( DOMString token,
DOMString newToken )

Definition at line 5229 of file Webelo.cpp.

◆ serialize()

DOMString DOMTokenList::serialize ( )
inline

Definition at line 1457 of file Webelo.cpp.

◆ setvalue()

void DOMTokenList::setvalue ( DOMString value)
inline

Definition at line 1429 of file Webelo.cpp.

◆ supports()

bool DOMTokenList::supports ( DOMString token)

Definition at line 5240 of file Webelo.cpp.

◆ toggle()

bool DOMTokenList::toggle ( DOMString token,
std::optional< bool > force )

Definition at line 5209 of file Webelo.cpp.

◆ update()

void DOMTokenList::update ( )
inline

Definition at line 1450 of file Webelo.cpp.

◆ validate()

bool DOMTokenList::validate ( DOMString token)
inline

Definition at line 1444 of file Webelo.cpp.

Member Data Documentation

◆ associatedAttribute

Attr* DOMTokenList::associatedAttribute = nullptr

Definition at line 1438 of file Webelo.cpp.

◆ associatedElement

Element* DOMTokenList::associatedElement = nullptr

Definition at line 1437 of file Webelo.cpp.

◆ list

std::set<DOMString> DOMTokenList::list = {}

Definition at line 1435 of file Webelo.cpp.


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