Serenity Operating System
1/*
2 * Copyright (c) 2020, the SerenityOS developers.
3 *
4 * SPDX-License-Identifier: BSD-2-Clause
5 */
6
7#include <LibWeb/Bindings/Intrinsics.h>
8#include <LibWeb/HTML/HTMLOutputElement.h>
9
10namespace Web::HTML {
11
12HTMLOutputElement::HTMLOutputElement(DOM::Document& document, DOM::QualifiedName qualified_name)
13 : HTMLElement(document, move(qualified_name))
14{
15}
16
17HTMLOutputElement::~HTMLOutputElement() = default;
18
19JS::ThrowCompletionOr<void> HTMLOutputElement::initialize(JS::Realm& realm)
20{
21 MUST_OR_THROW_OOM(Base::initialize(realm));
22 set_prototype(&Bindings::ensure_web_prototype<Bindings::HTMLOutputElementPrototype>(realm, "HTMLOutputElement"));
23
24 return {};
25}
26
27// https://html.spec.whatwg.org/multipage/form-elements.html#the-output-element:concept-form-reset-control
28void HTMLOutputElement::reset_algorithm()
29{
30 // 1. FIXME: String replace all with this element's default value within this element.
31
32 // 2. FIXME: Set this element's default value override to null.
33}
34
35}