mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 09:46:04 -05:00
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:
parent
56d7d28d41
commit
1c1b106f6c
Notes:
sideshowbarker
2024-07-18 18:20:07 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/1c1b106f6c7 Pull-request: https://github.com/SerenityOS/serenity/pull/7029
1 changed files with 2 additions and 2 deletions
|
@ -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_(); }
|
||||
|
|
Loading…
Add table
Reference in a new issue