LibWeb: Implement HTMLTableCellElement.cellIndex

See:
 - http://wpt.live/html/semantics/tabular-data/attributes-common-to-td-and-th-elements/cellIndex.html
(cherry picked from commit fa5800ebc52a51ad66ddbf5a97ffb9fbb5424b70)
This commit is contained in:
Jamie Mansfield
2024-08-06 21:55:36 +01:00
committed by Nico Weber
parent adebc2a214
commit 38dc317291
5 changed files with 50 additions and 1 deletions

View File

@@ -7,6 +7,7 @@
#pragma once
#include <LibWeb/HTML/HTMLElement.h>
#include <LibWeb/WebIDL/Types.h>
namespace Web::HTML {
@@ -23,6 +24,8 @@ public:
WebIDL::ExceptionOr<void> set_col_span(unsigned);
WebIDL::ExceptionOr<void> set_row_span(unsigned);
WebIDL::Long cell_index() const;
virtual Optional<ARIA::Role> default_role() const override;
private: