mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 17:28:30 +00:00
LibWeb: Add a whole bunch of HTML DOM bindings
Note that these aren't full implementations of the bindings. This mostly implements the low hanging fruit (namely, basic reflections) There are some attributes that should be USVString instead of DOMString. However, USVString is a slightly different definition of DOMString, so it should suffice for now.
This commit is contained in:
@@ -32,6 +32,8 @@ namespace Web {
|
||||
|
||||
class HTMLTableCellElement final : public HTMLElement {
|
||||
public:
|
||||
using WrapperType = Bindings::HTMLTableCellElementWrapper;
|
||||
|
||||
HTMLTableCellElement(DOM::Document&, const FlyString& local_name);
|
||||
virtual ~HTMLTableCellElement() override;
|
||||
|
||||
@@ -42,5 +44,5 @@ private:
|
||||
}
|
||||
|
||||
AK_BEGIN_TYPE_TRAITS(Web::HTMLTableCellElement)
|
||||
static bool is_type(const Web::DOM::Node& node) { return node.is_html_element() && downcast<Web::HTMLElement>(node).local_name() == Web::HTML::TagNames::td; }
|
||||
static bool is_type(const Web::DOM::Node& node) { return node.is_html_element() && downcast<Web::HTMLElement>(node).local_name().is_one_of(Web::HTML::TagNames::td, Web::HTML::TagNames::th); }
|
||||
AK_END_TYPE_TRAITS()
|
||||
|
||||
Reference in New Issue
Block a user