mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 14:58:46 +00:00
LibWeb: Make HTMLPreElement's is_type match "listing" and "xmp"
I forgot to add these when I saw that listing and xmp are mapped to HTMLPreElement.
This commit is contained in:
parent
d1e83b4f6e
commit
7b755e6a58
Notes:
sideshowbarker
2024-07-19 03:28:21 +09:00
Author: https://github.com/Lubrsi
Commit: 7b755e6a58
Pull-request: https://github.com/SerenityOS/serenity/pull/3198
1 changed files with 1 additions and 1 deletions
|
@ -41,5 +41,5 @@ public:
|
|||
}
|
||||
|
||||
AK_BEGIN_TYPE_TRAITS(Web::HTML::HTMLPreElement)
|
||||
static bool is_type(const Web::DOM::Node& node) { return node.is_html_element() && downcast<Web::HTML::HTMLElement>(node).local_name() == Web::HTML::TagNames::pre; }
|
||||
static bool is_type(const Web::DOM::Node& node) { return node.is_html_element() && downcast<Web::HTML::HTMLElement>(node).local_name().is_one_of(Web::HTML::TagNames::pre, Web::HTML::TagNames::listing, Web::HTML::TagNames::xmp); }
|
||||
AK_END_TYPE_TRAITS()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue