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

LibWeb: Add is<HTMLImageElement>()

This commit is contained in:
Andreas Kling 2020-04-14 20:35:49 +02:00
parent 1813e083ff
commit 22de1e47ec

View file

@ -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");
}
}