diff options
author | Linus Groh <mail@linusgroh.de> | 2021-04-14 01:23:39 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-14 09:30:29 +0200 |
commit | d721c93beb339678bd965179104fb6647553cd6d (patch) | |
tree | 09ec5bbaa3285dc6a7db44712e347d587417fefd /Userland | |
parent | d2b5c4d8dc4e15cb70bbfdbc46c7141cef6c94c1 (diff) | |
download | serenity-d721c93beb339678bd965179104fb6647553cd6d.zip |
LibWeb: Add Element::prefix()
Just a getter for m_qualified_name.prefix(), just like local_name() and
namespace_().
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Element.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Element.h b/Userland/Libraries/LibWeb/DOM/Element.h index 767a6dd6de..6747791964 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.h +++ b/Userland/Libraries/LibWeb/DOM/Element.h @@ -55,6 +55,7 @@ public: // NOTE: This is for the JS bindings const FlyString& tag_name() const { return local_name(); } + const FlyString& prefix() const { return m_qualified_name.prefix(); } const FlyString& namespace_() const { return m_qualified_name.namespace_(); } // NOTE: This is for the JS bindings |