mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05: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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue