/* * Copyright (c) 2021, Luke Wilde * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include #include namespace Web::HTML { // https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#domparser class DOMParser final : public RefCounted , public Weakable , public Bindings::Wrappable { public: using WrapperType = Bindings::DOMParserWrapper; static DOM::ExceptionOr> create_with_global_object(Bindings::WindowObject&) { return adopt_ref(*new DOMParser()); } virtual ~DOMParser() override; NonnullRefPtr parse_from_string(String const&, String const&); private: DOMParser(); }; }