2021-09-13 18:42:57 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2021, Luke Wilde <lukew@serenityos.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <LibWeb/DOM/Element.h>
|
|
|
|
|
#include <LibWeb/DOM/ShadowRoot.h>
|
|
|
|
|
#include <LibWeb/HTML/HTMLTemplateElement.h>
|
2022-09-25 13:03:42 -03:00
|
|
|
#include <LibWeb/WebIDL/ExceptionOr.h>
|
2021-09-13 18:42:57 -03:00
|
|
|
|
2021-10-02 17:45:37 -03:00
|
|
|
namespace Web::DOMParsing {
|
2021-09-13 18:42:57 -03:00
|
|
|
|
|
|
|
|
// https://w3c.github.io/DOM-Parsing/#dom-innerhtml-innerhtml
|
2023-09-05 23:52:53 -03:00
|
|
|
WebIDL::ExceptionOr<void> inner_html_setter(JS::NonnullGCPtr<DOM::Node> context_object, StringView value);
|
2021-09-13 18:42:57 -03:00
|
|
|
|
2023-09-21 05:11:48 -03:00
|
|
|
WebIDL::ExceptionOr<JS::NonnullGCPtr<DOM::DocumentFragment>> parse_fragment(StringView markup, DOM::Element& context_element);
|
2022-09-20 13:28:41 -03:00
|
|
|
|
2021-09-13 18:42:57 -03:00
|
|
|
}
|