mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Handle some more parser inputs in the "in head" insertion mode
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 06:08:58 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/f62a8d3b19d
@@ -92,6 +92,18 @@ public:
|
||||
return m_tag.self_closing;
|
||||
}
|
||||
|
||||
bool has_acknowledged_self_closing_flag() const
|
||||
{
|
||||
ASSERT(is_self_closing());
|
||||
return m_tag.self_closing_acknowledged;
|
||||
}
|
||||
|
||||
void acknowledge_self_closing_flag_if_set()
|
||||
{
|
||||
if (is_self_closing())
|
||||
m_tag.self_closing_acknowledged = true;
|
||||
}
|
||||
|
||||
Type type() const { return m_type; }
|
||||
|
||||
String to_string() const;
|
||||
@@ -117,6 +129,7 @@ private:
|
||||
struct {
|
||||
StringBuilder tag_name;
|
||||
bool self_closing { false };
|
||||
bool self_closing_acknowledged { false };
|
||||
Vector<AttributeBuilder> attributes;
|
||||
} m_tag;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user