summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLScriptElement.h')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLScriptElement.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.h b/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.h
index 5b7a5e1fee..00ef528324 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.h
+++ b/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.h
@@ -58,6 +58,8 @@ public:
private:
HTMLScriptElement(DOM::Document&, DOM::QualifiedName);
+ virtual bool is_html_script_element() const override { return true; }
+
virtual void resource_did_load() override;
virtual void resource_did_fail() override;
@@ -124,3 +126,8 @@ private:
};
}
+
+namespace Web::DOM {
+template<>
+inline bool Node::fast_is<HTML::HTMLScriptElement>() const { return is_html_script_element(); }
+}