/* * Copyright (c) 2023, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #include namespace Web::HTML { HTMLDocument::HTMLDocument(JS::Realm& realm, AK::URL const& url) : Document(realm, url) { } HTMLDocument::~HTMLDocument() = default; WebIDL::ExceptionOr> HTMLDocument::construct_impl(JS::Realm& realm) { return HTMLDocument::create(realm); } JS::NonnullGCPtr HTMLDocument::create(JS::Realm& realm, AK::URL const& url) { return realm.heap().allocate(realm, realm, url); } }