mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 06:48:49 +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:
parent
2d600a8675
commit
887fa18e32
Notes:
sideshowbarker
2024-07-18 18:25:34 +09:00
Author: https://github.com/ant1441
Commit: 887fa18e32
Pull-request: https://github.com/SerenityOS/serenity/pull/6823
Reviewed-by: https://github.com/awesomekling
4 changed files with 92 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue