/* * Copyright (c) 2020, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include namespace Web::HTML { class HTMLTableElement final : public HTMLElement { WEB_PLATFORM_OBJECT(HTMLTableElement, HTMLElement); public: virtual ~HTMLTableElement() override; JS::GCPtr caption(); void set_caption(HTMLTableCaptionElement*); JS::NonnullGCPtr create_caption(); void delete_caption(); JS::GCPtr t_head(); WebIDL::ExceptionOr set_t_head(HTMLTableSectionElement* thead); JS::NonnullGCPtr create_t_head(); void delete_t_head(); JS::GCPtr t_foot(); WebIDL::ExceptionOr set_t_foot(HTMLTableSectionElement* tfoot); JS::NonnullGCPtr create_t_foot(); void delete_t_foot(); JS::NonnullGCPtr t_bodies(); JS::NonnullGCPtr create_t_body(); JS::NonnullGCPtr rows(); WebIDL::ExceptionOr> insert_row(long index); WebIDL::ExceptionOr delete_row(long index); private: HTMLTableElement(DOM::Document&, DOM::QualifiedName); virtual void apply_presentational_hints(CSS::StyleProperties&) const override; }; }