summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/HTML/HTMLPreElement.h
diff options
context:
space:
mode:
authorLuke <luke.wilde@live.co.uk>2020-08-09 17:10:41 +0100
committerAndreas Kling <kling@serenityos.org>2020-08-09 21:14:51 +0200
commit5724ac8e7225ea6a368b391a4e1b72bc70bfe07c (patch)
tree23ea1fa8ff4fb1d95a4cee4ddaf49f672a1cec07 /Libraries/LibWeb/HTML/HTMLPreElement.h
parentbe5a62d5d7bd5d1484c909ada2bf9b189afacf69 (diff)
downloadserenity-5724ac8e7225ea6a368b391a4e1b72bc70bfe07c.zip
LibWeb: Add HTML elements to factories, add missing tags and attributes
This is mostly to get the grunt work of the way. This is split up into multiple commits to hopefully make it more manageable to review. Note that these are not full implementations, and the bindings mostly get the low hanging fruit. Also implements some attributes that I kept out because they had dashes in them. Therefore, this closes #2905.
Diffstat (limited to 'Libraries/LibWeb/HTML/HTMLPreElement.h')
-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 2dfd4dad4b..d145a0ffec 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().is_one_of(Web::HTML::TagNames::pre, Web::HTML::TagNames::listing, Web::HTML::TagNames::xmp); }
+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; }
AK_END_TYPE_TRAITS()