mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
LibWeb/XML: Avoid placing all elements missing an ns in the HTML ns
Also remove the hack for SVG documents, a well-formed SVG document has the correct xmlns attribute set, which should be automatically picked up by the builder now.
This commit is contained in:
parent
830f1dbbfe
commit
ebe254a6d3
4 changed files with 43 additions and 14 deletions
|
@ -42,7 +42,13 @@ private:
|
|||
XMLScriptingSupport m_scripting_support { XMLScriptingSupport::Enabled };
|
||||
bool m_has_error { false };
|
||||
StringBuilder text_builder;
|
||||
DeprecatedFlyString m_namespace { Namespace::HTML };
|
||||
DeprecatedFlyString m_namespace {};
|
||||
|
||||
struct NamespaceStackEntry {
|
||||
DeprecatedFlyString ns;
|
||||
size_t depth;
|
||||
};
|
||||
Vector<NamespaceStackEntry, 2> m_namespace_stack;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue