HTMLOutputElement.cpp 934 B

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