HTMLOutputElement.cpp 975 B

1234567891011121314151617181920212223242526272829303132333435
  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. JS_DEFINE_ALLOCATOR(HTMLOutputElement);
  10. HTMLOutputElement::HTMLOutputElement(DOM::Document& document, DOM::QualifiedName qualified_name)
  11. : HTMLElement(document, move(qualified_name))
  12. {
  13. }
  14. HTMLOutputElement::~HTMLOutputElement() = default;
  15. void HTMLOutputElement::initialize(JS::Realm& realm)
  16. {
  17. Base::initialize(realm);
  18. set_prototype(&Bindings::ensure_web_prototype<Bindings::HTMLOutputElementPrototype>(realm, "HTMLOutputElement"));
  19. }
  20. // https://html.spec.whatwg.org/multipage/form-elements.html#the-output-element:concept-form-reset-control
  21. void HTMLOutputElement::reset_algorithm()
  22. {
  23. // 1. FIXME: String replace all with this element's default value within this element.
  24. // 2. FIXME: Set this element's default value override to null.
  25. }
  26. }