diff options
author | Luke <luke.wilde@live.co.uk> | 2021-05-11 15:17:11 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-11 18:01:36 +0200 |
commit | 1c1b106f6c77c583a441ba3e6a2e12237b350ce0 (patch) | |
tree | d560733f484afdf48b7d2c1601c66ae467093d0a /Userland/Libraries/LibWeb | |
parent | 56d7d28d41a9f874271b5f4108763a052feb2dd7 (diff) | |
download | serenity-1c1b106f6c77c583a441ba3e6a2e12237b350ce0.zip |
LibWeb: Make Element::tag_name return the HTML uppercased qualified name
I forgot to change tag_name when this was added.
Also makes html_uppercased_qualified_name return a const reference.
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Element.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Element.h b/Userland/Libraries/LibWeb/DOM/Element.h index bcf693e6d7..8aeae0d66e 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.h +++ b/Userland/Libraries/LibWeb/DOM/Element.h @@ -30,12 +30,12 @@ public: virtual ~Element() override; const String& qualified_name() const { return m_qualified_name.as_string(); } - String html_uppercased_qualified_name() const { return m_html_uppercased_qualified_name; } + const String& html_uppercased_qualified_name() const { return m_html_uppercased_qualified_name; } virtual FlyString node_name() const final { return html_uppercased_qualified_name(); } const FlyString& local_name() const { return m_qualified_name.local_name(); } // NOTE: This is for the JS bindings - const FlyString& tag_name() const { return local_name(); } + const String& tag_name() const { return html_uppercased_qualified_name(); } const FlyString& prefix() const { return m_qualified_name.prefix(); } const FlyString& namespace_() const { return m_qualified_name.namespace_(); } |