XMLDocument.cpp 502 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2023, Luke Wilde <lukew@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibWeb/Bindings/XMLDocumentPrototype.h>
  7. #include <LibWeb/DOM/XMLDocument.h>
  8. namespace Web::DOM {
  9. XMLDocument::XMLDocument(JS::Realm& realm, AK::URL const& url)
  10. : Document(realm, url)
  11. {
  12. }
  13. void XMLDocument::initialize(JS::Realm& realm)
  14. {
  15. Base::initialize(realm);
  16. set_prototype(&Bindings::ensure_web_prototype<Bindings::XMLDocumentPrototype>(realm, "XMLDocument"));
  17. }
  18. }