mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-29 11:00:29 +00:00
LibWeb: Only uppercase qualified names in HTML documents
This takes care of an old FIXME now that we can distinguish between HTML and non-HTML documents.
This commit is contained in:
parent
dc6e625680
commit
3c3ae3a768
Notes:
sideshowbarker
2024-07-17 06:53:12 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/3c3ae3a768
1 changed files with 1 additions and 1 deletions
|
@ -545,7 +545,7 @@ CSS::CSSStyleDeclaration* Element::style_for_bindings()
|
|||
void Element::make_html_uppercased_qualified_name()
|
||||
{
|
||||
// This is allowed by the spec: "User agents could optimize qualified name and HTML-uppercased qualified name by storing them in internal slots."
|
||||
if (namespace_() == Namespace::HTML /* FIXME: and its node document is an HTML document */)
|
||||
if (namespace_() == Namespace::HTML && document().document_type() == Document::Type::HTML)
|
||||
m_html_uppercased_qualified_name = qualified_name().to_uppercase();
|
||||
else
|
||||
m_html_uppercased_qualified_name = qualified_name();
|
||||
|
|
Loading…
Reference in a new issue