2023-04-05 23:00:08 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2023, Luke Wilde <lukew@serenityos.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <LibWeb/Bindings/XMLDocumentPrototype.h>
|
|
|
|
#include <LibWeb/DOM/XMLDocument.h>
|
|
|
|
|
|
|
|
namespace Web::DOM {
|
|
|
|
|
2024-11-15 04:01:23 +13:00
|
|
|
GC_DEFINE_ALLOCATOR(XMLDocument);
|
2023-11-19 19:47:52 +01:00
|
|
|
|
2024-11-15 04:01:23 +13:00
|
|
|
GC::Ref<XMLDocument> XMLDocument::create(JS::Realm& realm, URL::URL const& url)
|
2023-10-07 08:11:18 +02:00
|
|
|
{
|
2024-11-14 05:50:17 +13:00
|
|
|
return realm.create<XMLDocument>(realm, url);
|
2023-10-07 08:11:18 +02:00
|
|
|
}
|
|
|
|
|
2024-03-18 16:22:27 +13:00
|
|
|
XMLDocument::XMLDocument(JS::Realm& realm, URL::URL const& url)
|
2023-04-05 23:00:08 +01:00
|
|
|
: Document(realm, url)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2023-08-07 08:41:28 +02:00
|
|
|
void XMLDocument::initialize(JS::Realm& realm)
|
2023-04-05 23:00:08 +01:00
|
|
|
{
|
2024-03-16 13:13:08 +01:00
|
|
|
WEB_SET_PROTOTYPE_FOR_INTERFACE(XMLDocument);
|
2025-04-20 16:22:57 +02:00
|
|
|
Base::initialize(realm);
|
2023-04-05 23:00:08 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|