mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-31 13:48:25 +00:00
LibWeb: Port HTMLToken prefix and namespace to Optional<FlyString>
Previously these were DeprecatedStrings that contained a null state. After the null state was removed, the nullability of these members was broken. This doesn't seem to cause any problems currently as the HTML parser is not inserting attributes with their full qualified name, but after we fix that problem, this bug surfaces.
This commit is contained in:
committed by
Sam Atkins
parent
fcde808308
commit
8fbf72b5bf
@@ -42,9 +42,9 @@ public:
|
||||
};
|
||||
|
||||
struct Attribute {
|
||||
DeprecatedString prefix;
|
||||
Optional<FlyString> prefix;
|
||||
FlyString local_name;
|
||||
FlyString namespace_;
|
||||
Optional<FlyString> namespace_;
|
||||
String value;
|
||||
Position name_start_position;
|
||||
Position value_start_position;
|
||||
@@ -290,7 +290,7 @@ public:
|
||||
});
|
||||
}
|
||||
|
||||
void adjust_foreign_attribute(FlyString const& old_name, DeprecatedFlyString const& prefix, FlyString const& local_name, FlyString const& namespace_)
|
||||
void adjust_foreign_attribute(FlyString const& old_name, Optional<FlyString> const& prefix, FlyString const& local_name, Optional<FlyString> const& namespace_)
|
||||
{
|
||||
VERIFY(is_start_tag() || is_end_tag());
|
||||
for_each_attribute([&](Attribute& attribute) {
|
||||
|
||||
Reference in New Issue
Block a user