mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 01:37:39 +03:00
LibWeb: Make the default XML namespace an empty Optional
Previously, when constructing an XML document, the default namespace was the empty string. This led to XML documents having empty xmlns attributes when serialized.
This commit is contained in:
parent
1a249f9d85
commit
ee6b0e144a
Notes:
sideshowbarker
2024-07-17 16:42:19 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/ee6b0e144a Pull-request: https://github.com/SerenityOS/serenity/pull/23243 Reviewed-by: https://github.com/gmta ✅
@ -42,10 +42,10 @@ private:
|
||||
XMLScriptingSupport m_scripting_support { XMLScriptingSupport::Enabled };
|
||||
bool m_has_error { false };
|
||||
StringBuilder text_builder;
|
||||
FlyString m_namespace;
|
||||
Optional<FlyString> m_namespace;
|
||||
|
||||
struct NamespaceStackEntry {
|
||||
FlyString ns;
|
||||
Optional<FlyString> ns;
|
||||
size_t depth;
|
||||
};
|
||||
Vector<NamespaceStackEntry, 2> m_namespace_stack;
|
||||
|
Loading…
Reference in New Issue
Block a user