summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorLuke <luke.wilde@live.co.uk>2020-08-17 19:10:45 +0100
committerAndreas Kling <kling@serenityos.org>2020-08-17 22:57:05 +0200
commit7b755e6a58b84ab81aad588b7eb17bc7f4be8c46 (patch)
tree1a07eaf4182315bfdd9d2d8c5248814fb78e5558 /Libraries
parentd1e83b4f6ece9f1e1f8077b1c6821005ff62b00d (diff)
downloadserenity-7b755e6a58b84ab81aad588b7eb17bc7f4be8c46.zip
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.
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibWeb/HTML/HTMLPreElement.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibWeb/HTML/HTMLPreElement.h b/Libraries/LibWeb/HTML/HTMLPreElement.h
index d145a0ffec..2dfd4dad4b 100644
--- a/Libraries/LibWeb/HTML/HTMLPreElement.h
+++ b/Libraries/LibWeb/HTML/HTMLPreElement.h
@@ -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()