浏览代码

LibWeb: Add Element::prefix()

Just a getter for m_qualified_name.prefix(), just like local_name() and
namespace_().
Linus Groh 4 年之前
父节点
当前提交
d721c93beb
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Userland/Libraries/LibWeb/DOM/Element.h

+ 1 - 0
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