2021-09-14 00: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 19:03:42 +03:00
|
|
|
#include <LibWeb/WebIDL/ExceptionOr.h>
|
2021-09-14 00:42:57 +03:00
|
|
|
|
2021-10-02 23:45:37 +03:00
|
|
|
namespace Web::DOMParsing {
|
2021-09-14 00:42:57 +03:00
|
|
|
|
|
|
|
// https://w3c.github.io/DOM-Parsing/#dom-innerhtml-innerhtml
|
2022-09-25 19:03:42 +03:00
|
|
|
WebIDL::ExceptionOr<void> inner_html_setter(JS::NonnullGCPtr<DOM::Node> context_object, String const& value);
|
2021-09-14 00:42:57 +03:00
|
|
|
|
2022-09-25 19:03:42 +03:00
|
|
|
WebIDL::ExceptionOr<JS::NonnullGCPtr<DOM::DocumentFragment>> parse_fragment(String const& markup, DOM::Element& context_element);
|
2022-09-20 19:28:41 +03:00
|
|
|
|
2021-09-14 00:42:57 +03:00
|
|
|
}
|