1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:07:35 +00:00

LibWeb: Add Element::prefix()

Just a getter for m_qualified_name.prefix(), just like local_name() and
namespace_().
This commit is contained in:
Linus Groh 2021-04-14 01:23:39 +02:00 committed by Andreas Kling
parent d2b5c4d8dc
commit d721c93beb

View file

@ -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