mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibWeb: Implement HTMLTableElement row attributes
rows returns a HTMLCollection of all the tr elements contained within the table. We leave the SameObject attribute off the attribute in the IDL as we cannot currently return the same HTMLCollection every time (see the FIXME on DOM::Document::applets) The WrapperGenerator currently does not correctly handle the default value for the type long on insertRow. Currently not specifying the index will insert a row at index 0.
This commit is contained in:
committed by
Andreas Kling
parent
2d600a8675
commit
887fa18e32
@@ -6,7 +6,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/DOM/ExceptionOr.h>
|
||||
#include <LibWeb/HTML/HTMLElement.h>
|
||||
#include <LibWeb/HTML/HTMLTableRowElement.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
@@ -17,6 +19,10 @@ public:
|
||||
HTMLTableElement(DOM::Document&, QualifiedName);
|
||||
virtual ~HTMLTableElement() override;
|
||||
|
||||
NonnullRefPtr<DOM::HTMLCollection> rows();
|
||||
DOM::ExceptionOr<NonnullRefPtr<HTMLTableRowElement>> insert_row(long index);
|
||||
DOM::ExceptionOr<void> delete_row(long index);
|
||||
|
||||
private:
|
||||
virtual void apply_presentational_hints(CSS::StyleProperties&) const override;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user