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:
parent
1813e083ff
commit
22de1e47ec
1 changed files with 6 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue