Serenity Operating System
at master 31 lines 774 B view raw
1/* 2 * Copyright (c) 2020, the SerenityOS developers. 3 * 4 * SPDX-License-Identifier: BSD-2-Clause 5 */ 6 7#pragma once 8 9#include <LibWeb/ARIA/Roles.h> 10#include <LibWeb/HTML/HTMLElement.h> 11 12namespace Web::HTML { 13 14class HTMLTableCaptionElement final : public HTMLElement { 15 WEB_PLATFORM_OBJECT(HTMLTableCaptionElement, HTMLElement); 16 17public: 18 virtual ~HTMLTableCaptionElement() override; 19 20 virtual void apply_presentational_hints(CSS::StyleProperties&) const override; 21 22 // https://www.w3.org/TR/html-aria/#el-caption 23 virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::caption; } 24 25private: 26 HTMLTableCaptionElement(DOM::Document&, DOM::QualifiedName); 27 28 virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override; 29}; 30 31}