mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
This corresponds with the editorial change to the HTML standard introducing the parsing mode enum of: https://github.com/whatwg/html/commit/01c45cede And a follow up normative change of: https://github.com/whatwg/html/commit/508706c80 Making fragment parsing derive its scripting mode from the context document.
21 lines
428 B
C++
21 lines
428 B
C++
/*
|
|
* Copyright (c) 2025, mikiubo <michele.uboldi@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/DOM/Element.h>
|
|
#include <LibWeb/HTML/Parser/HTMLParser.h>
|
|
#include <LibWeb/XML/XMLDocumentBuilder.h>
|
|
|
|
namespace Web {
|
|
|
|
class XMLFragmentParser final {
|
|
public:
|
|
static WebIDL::ExceptionOr<Vector<GC::Root<DOM::Node>>> parse_xml_fragment(DOM::Element& context, StringView markup);
|
|
};
|
|
|
|
}
|