mirror of
https://github.com/RGBCube/serenity
synced 2025-05-29 20:35:13 +00:00
LibWeb: Implement HTMLTableElement caption attributes
* caption - Getter and setter for the caption element * createCaption - If necessary, creates a new caption element and add it to the table * deleteCaption - If a caption element exists in the table, delete it
This commit is contained in:
parent
887fa18e32
commit
0fa0367a39
4 changed files with 46 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include <LibWeb/DOM/ExceptionOr.h>
|
||||
#include <LibWeb/HTML/HTMLElement.h>
|
||||
#include <LibWeb/HTML/HTMLTableCaptionElement.h>
|
||||
#include <LibWeb/HTML/HTMLTableRowElement.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
@ -19,6 +20,11 @@ public:
|
|||
HTMLTableElement(DOM::Document&, QualifiedName);
|
||||
virtual ~HTMLTableElement() override;
|
||||
|
||||
RefPtr<HTMLTableCaptionElement> caption();
|
||||
void set_caption(HTMLTableCaptionElement&);
|
||||
NonnullRefPtr<HTMLTableCaptionElement> create_caption();
|
||||
void delete_caption();
|
||||
|
||||
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