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