2023-04-05 19:00:08 -03: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-14 12:01:23 -03:00
|
|
|
GC_DEFINE_ALLOCATOR(XMLDocument);
|
2023-11-19 15:47:52 -03:00
|
|
|
|
2024-11-14 12:01:23 -03:00
|
|
|
GC::Ref<XMLDocument> XMLDocument::create(JS::Realm& realm, URL::URL const& url)
|
2023-10-07 03:11:18 -03:00
|
|
|
{
|
2024-11-13 13:50:17 -03:00
|
|
|
return realm.create<XMLDocument>(realm, url);
|
2023-10-07 03:11:18 -03:00
|
|
|
}
|
|
|
|
|
|
2024-03-18 00:22:27 -03:00
|
|
|
XMLDocument::XMLDocument(JS::Realm& realm, URL::URL const& url)
|
2023-04-05 19:00:08 -03:00
|
|
|
: Document(realm, url)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-07 03:41:28 -03:00
|
|
|
void XMLDocument::initialize(JS::Realm& realm)
|
2023-04-05 19:00:08 -03:00
|
|
|
{
|
2023-08-07 03:41:28 -03:00
|
|
|
Base::initialize(realm);
|
2024-03-16 09:13:08 -03:00
|
|
|
WEB_SET_PROTOTYPE_FOR_INTERFACE(XMLDocument);
|
2023-04-05 19:00:08 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|