HTMLTextAreaElement.cpp 1.0 KB

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/HTMLTextAreaElement.h>
  8. namespace Web::HTML {
  9. HTMLTextAreaElement::HTMLTextAreaElement(DOM::Document& document, DOM::QualifiedName qualified_name)
  10. : HTMLElement(document, move(qualified_name))
  11. {
  12. set_prototype(&Bindings::cached_web_prototype(realm(), "HTMLTextAreaElement"));
  13. }
  14. HTMLTextAreaElement::~HTMLTextAreaElement() = default;
  15. // https://html.spec.whatwg.org/multipage/interaction.html#dom-tabindex
  16. i32 HTMLTextAreaElement::default_tab_index_value() const
  17. {
  18. // See the base function for the spec comments.
  19. return 0;
  20. }
  21. // https://html.spec.whatwg.org/multipage/form-elements.html#the-textarea-element:concept-form-reset-control
  22. void HTMLTextAreaElement::reset_algorithm()
  23. {
  24. // FIXME: The reset algorithm for textarea elements is to set the dirty value flag back to false, and set the raw value of element to its child text content.
  25. }
  26. }