Serenity Operating System
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 HTMLPreElement final : public HTMLElement {
15 WEB_PLATFORM_OBJECT(HTMLPreElement, HTMLElement);
16
17public:
18 virtual ~HTMLPreElement() override;
19
20 // https://www.w3.org/TR/html-aria/#el-pre
21 virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::generic; }
22
23private:
24 HTMLPreElement(DOM::Document&, DOM::QualifiedName);
25
26 virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override;
27 virtual void apply_presentational_hints(CSS::StyleProperties&) const override;
28};
29
30}