mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-06 03:02:55 +00:00
LibWeb: Change HTMLToken::m_doctype into named DoctypeData struct
This is in preparation for an upcoming storage change of HTMLToken. In contrast to the other token types, the accessor can hand out a mutable reference to allow users to change parts of the DoctypeData easily.
This commit is contained in:
parent
918bde98b1
commit
8b31e41692
Notes:
sideshowbarker
2024-07-18 08:52:51 +09:00
Author: https://github.com/MaxWipfli
Commit: 8b31e41692
Pull-request: https://github.com/SerenityOS/serenity/pull/8784
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/alimpfard
4 changed files with 92 additions and 79 deletions
|
@ -16,7 +16,7 @@ String HTMLToken::to_string() const
|
|||
case HTMLToken::Type::DOCTYPE:
|
||||
builder.append("DOCTYPE");
|
||||
builder.append(" { name: '");
|
||||
builder.append(m_doctype.name);
|
||||
builder.append(doctype_data().name);
|
||||
builder.append("' }");
|
||||
break;
|
||||
case HTMLToken::Type::StartTag:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue