InnerHTML.h 610 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2021, Luke Wilde <lukew@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/DOM/Element.h>
  8. #include <LibWeb/DOM/ShadowRoot.h>
  9. #include <LibWeb/HTML/HTMLTemplateElement.h>
  10. #include <LibWeb/WebIDL/ExceptionOr.h>
  11. namespace Web::DOMParsing {
  12. // https://w3c.github.io/DOM-Parsing/#dom-innerhtml-innerhtml
  13. WebIDL::ExceptionOr<void> inner_html_setter(JS::NonnullGCPtr<DOM::Node> context_object, String const& value);
  14. WebIDL::ExceptionOr<JS::NonnullGCPtr<DOM::DocumentFragment>> parse_fragment(String const& markup, DOM::Element& context_element);
  15. }