/* * Copyright (c) 2021, Luke Wilde * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include namespace Web::HTML { // https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#domparser class DOMParser final : public Bindings::PlatformObject { WEB_PLATFORM_OBJECT(DOMParser, Bindings::PlatformObject); public: static WebIDL::ExceptionOr> construct_impl(JS::Realm&); virtual ~DOMParser() override; JS::NonnullGCPtr parse_from_string(String const&, Bindings::DOMParserSupportedType type); private: explicit DOMParser(JS::Realm&); }; }