mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 03:57:35 +00:00
LibWeb: Implement HTMLTableElement thead attributes
* tHead - Getter for the thead element The setter is not currently implemented * createTHead - If necessary, creates a new thead element and add it to the table after any caption or colgroup elements, but before anything else * deleteTHead - If a thead element exists in the table, delete it
This commit is contained in:
parent
0fa0367a39
commit
b3f7ea9914
4 changed files with 97 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <LibWeb/HTML/HTMLElement.h>
|
||||
#include <LibWeb/HTML/HTMLTableCaptionElement.h>
|
||||
#include <LibWeb/HTML/HTMLTableRowElement.h>
|
||||
#include <LibWeb/HTML/HTMLTableSectionElement.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
|
@ -25,6 +26,11 @@ public:
|
|||
NonnullRefPtr<HTMLTableCaptionElement> create_caption();
|
||||
void delete_caption();
|
||||
|
||||
RefPtr<HTMLTableSectionElement> t_head();
|
||||
DOM::ExceptionOr<void> set_t_head(HTMLTableSectionElement& thead);
|
||||
NonnullRefPtr<HTMLTableSectionElement> create_t_head();
|
||||
void delete_t_head();
|
||||
|
||||
NonnullRefPtr<DOM::HTMLCollection> rows();
|
||||
DOM::ExceptionOr<NonnullRefPtr<HTMLTableRowElement>> insert_row(long index);
|
||||
DOM::ExceptionOr<void> delete_row(long index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue