mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
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.
This commit is contained in:
@@ -36,12 +36,13 @@ public:
|
||||
|
||||
HTMLUnknownElement(DOM::Document&, const FlyString& local_name);
|
||||
virtual ~HTMLUnknownElement() override;
|
||||
|
||||
private:
|
||||
virtual bool is_unknown_html_element() const final { return true; }
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
AK_BEGIN_TYPE_TRAITS(Web::HTML::HTMLUnknownElement)
|
||||
// FIXME: I'm not sure what the check for this should be.
|
||||
// There are some elements which are explicitly mapped to HTMLUnknownElement, but other than that, it's for, well, unknown elements.
|
||||
static bool is_type(const Web::DOM::Node& node) { return node.is_html_element(); }
|
||||
static bool is_type(const Web::DOM::Node& node) { return node.is_unknown_html_element(); }
|
||||
AK_END_TYPE_TRAITS()
|
||||
|
||||
Reference in New Issue
Block a user