HTMLTableSectionElement.h 740 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2020, the SerenityOS developers.
  3. * Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
  4. *
  5. * SPDX-License-Identifier: BSD-2-Clause
  6. */
  7. #pragma once
  8. #include <LibWeb/HTML/HTMLElement.h>
  9. namespace Web::HTML {
  10. class HTMLTableSectionElement final : public HTMLElement {
  11. WEB_PLATFORM_OBJECT(HTMLTableSectionElement, HTMLElement);
  12. public:
  13. virtual ~HTMLTableSectionElement() override;
  14. JS::NonnullGCPtr<DOM::HTMLCollection> rows() const;
  15. DOM::ExceptionOr<JS::NonnullGCPtr<HTMLTableRowElement>> insert_row(long index);
  16. DOM::ExceptionOr<void> delete_row(long index);
  17. private:
  18. HTMLTableSectionElement(DOM::Document&, DOM::QualifiedName);
  19. };
  20. }
  21. WRAPPER_HACK(HTMLTableSectionElement, Web::HTML)