LibWeb: Implement HTMLTableElement tbody attributes

* tBodies - returns a HTMLCollection of all tbody elements
* createTBody - If necessary, creates a new tbody element
  and add it to the table after the last tbody element
This commit is contained in:
Adam Hodgen 2021-05-02 18:17:08 +01:00 committed by Andreas Kling
commit 37685b0181
Notes: sideshowbarker 2024-07-18 18:25:19 +09:00
3 changed files with 38 additions and 0 deletions

View file

@ -36,6 +36,9 @@ public:
NonnullRefPtr<HTMLTableSectionElement> create_t_foot();
void delete_t_foot();
NonnullRefPtr<DOM::HTMLCollection> t_bodies();
NonnullRefPtr<HTMLTableSectionElement> create_t_body();
NonnullRefPtr<DOM::HTMLCollection> rows();
DOM::ExceptionOr<NonnullRefPtr<HTMLTableRowElement>> insert_row(long index);
DOM::ExceptionOr<void> delete_row(long index);