#include <base/string/HTML.h>
Inherits HTMLItem.
◆ HTMLElement() [1/2]
HTMLElement::HTMLElement |
( |
| ) |
|
|
noexcept |
Initialize unnamed element.
◆ HTMLElement() [2/2]
HTMLElement::HTMLElement |
( |
const String & |
_name | ) |
|
|
noexcept |
◆ addChild()
◆ addText()
◆ copy()
◆ getAttribute()
Returns the attribute by name. Returns nullptr if not set.
◆ getAttributeValue()
String HTMLElement::getAttributeValue |
( |
const String & |
name | ) |
const |
|
noexcept |
Returns the value of the attribute with the given name. Returns empty string if not set.
◆ getChild()
R<HTMLItem> HTMLElement::getChild |
( |
unsigned int |
index | ) |
|
Returns the child by index.
◆ getFirstChild() [1/2]
R<HTMLElement> HTMLElement::getFirstChild |
( |
const char * |
name | ) |
|
|
noexcept |
Returns the first child of the given type.
◆ getFirstChild() [2/2]
Returns the first child of the given type.
◆ getNumberOfAttributes()
MemorySize HTMLElement::getNumberOfAttributes |
( |
| ) |
const |
|
noexcept |
Returns the number of attributes.
◆ getNumberOfChildren()
MemorySize HTMLElement::getNumberOfChildren |
( |
| ) |
const |
|
noexcept |
Returns the number of children.
◆ setAttribute()
void HTMLElement::setAttribute |
( |
const String & |
name, |
|
|
const String & |
value |
|
) |
| |
◆ toCode()
◆ attributes
◆ children
◆ name