HTMLOutputElement.cpp 811 B

12345678910111213141516171819202122232425262728
  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. set_prototype(&Bindings::cached_web_prototype(realm(), "HTMLOutputElement"));
  13. }
  14. HTMLOutputElement::~HTMLOutputElement() = default;
  15. // https://html.spec.whatwg.org/multipage/form-elements.html#the-output-element:concept-form-reset-control
  16. void HTMLOutputElement::reset_algorithm()
  17. {
  18. // 1. FIXME: String replace all with this element's default value within this element.
  19. // 2. FIXME: Set this element's default value override to null.
  20. }
  21. }