/* * 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 { public: using WrapperType = Bindings::HTMLTableElementWrapper; HTMLTableElement(DOM::Document&, QualifiedName); virtual ~HTMLTableElement() override; RefPtr caption(); void set_caption(HTMLTableCaptionElement*); NonnullRefPtr create_caption(); void delete_caption(); RefPtr t_head(); DOM::ExceptionOr set_t_head(HTMLTableSectionElement* thead); NonnullRefPtr create_t_head(); void delete_t_head(); RefPtr t_foot(); DOM::ExceptionOr set_t_foot(HTMLTableSectionElement* tfoot); NonnullRefPtr create_t_foot(); void delete_t_foot(); NonnullRefPtr t_bodies(); NonnullRefPtr create_t_body(); NonnullRefPtr rows(); DOM::ExceptionOr> insert_row(long index); DOM::ExceptionOr delete_row(long index); private: virtual void apply_presentational_hints(CSS::StyleProperties&) const override; }; }