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.
This commit is contained in:
Luke 2021-05-11 15:17:11 +01:00 committed by Andreas Kling
parent 56d7d28d41
commit 1c1b106f6c
Notes: sideshowbarker 2024-07-18 18:20:07 +09:00

View file

@ -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_(); }