mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 20:45:14 +00:00
LibWeb: Add is<HTMLImageElement>()
This commit is contained in:
parent
1813e083ff
commit
22de1e47ec
Notes:
sideshowbarker
2024-07-19 07:35:47 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/22de1e47ec9
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
Reference in a new issue