/* * Copyright (c) 2020, the SerenityOS developers. * Copyright (c) 2022, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace Web::HTML { class HTMLTableSectionElement final : public HTMLElement { WEB_PLATFORM_OBJECT(HTMLTableSectionElement, HTMLElement); public: virtual ~HTMLTableSectionElement() override; JS::NonnullGCPtr rows() const; WebIDL::ExceptionOr> insert_row(long index); WebIDL::ExceptionOr delete_row(long index); // https://www.w3.org/TR/html-aria/#el-tbody // https://www.w3.org/TR/html-aria/#el-tfoot // https://www.w3.org/TR/html-aria/#el-thead virtual Optional default_role() const override { return ARIA::Role::rowgroup; } private: HTMLTableSectionElement(DOM::Document&, DOM::QualifiedName); virtual JS::ThrowCompletionOr initialize(JS::Realm&) override; virtual void visit_edges(Cell::Visitor&) override; JS::GCPtr mutable m_rows; }; }