summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/DOM/HTMLImageElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibWeb/DOM/HTMLImageElement.h')
-rw-r--r--Libraries/LibWeb/DOM/HTMLImageElement.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Libraries/LibWeb/DOM/HTMLImageElement.h b/Libraries/LibWeb/DOM/HTMLImageElement.h
index ab653a8f09..46056f9d93 100644
--- a/Libraries/LibWeb/DOM/HTMLImageElement.h
+++ b/Libraries/LibWeb/DOM/HTMLImageElement.h
@@ -60,4 +60,10 @@ private:
ByteBuffer m_encoded_data;
};
+template<>
+inline bool is<HTMLImageElement>(const Node& node)
+{
+ return is<Element>(node) && to<Element>(node).tag_name().equals_ignoring_case("img");
+}
+
}