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
commit 15d8635afc
Notes: sideshowbarker 2024-07-18 08:52:58 +09:00
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);