1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 17:04:59 +00:00

LibWeb: User getter+setter for HTMLToken tag name and self-closing flag

This commit is contained in:
Max Wipfli 2021-07-14 23:37:48 +02:00 committed by Ali Mohammad Pur
parent 1aeafcc58b
commit 15d8635afc
4 changed files with 34 additions and 22 deletions

View file

@ -40,7 +40,7 @@ String HTMLToken::to_string() const
if (type() == HTMLToken::Type::StartTag || type() == HTMLToken::Type::EndTag) {
builder.append(" { name: '");
builder.append(m_tag.tag_name);
builder.append(tag_name());
builder.append("', { ");
for (auto& attribute : m_tag.attributes) {
builder.append(attribute.local_name);