LibWeb: Make DOMImplementation IDL return an XMLDocument

Which the implementation was already doing, so no behaviour change :^)
This commit is contained in:
Shannon Booth
2024-05-19 21:38:56 +12:00
committed by Andreas Kling
parent f7beea1397
commit a8e3400a2a
3 changed files with 4 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ void DOMImplementation::visit_edges(Cell::Visitor& visitor)
}
// https://dom.spec.whatwg.org/#dom-domimplementation-createdocument
WebIDL::ExceptionOr<JS::NonnullGCPtr<Document>> DOMImplementation::create_document(Optional<FlyString> const& namespace_, String const& qualified_name, JS::GCPtr<DocumentType> doctype) const
WebIDL::ExceptionOr<JS::NonnullGCPtr<XMLDocument>> DOMImplementation::create_document(Optional<FlyString> const& namespace_, String const& qualified_name, JS::GCPtr<DocumentType> doctype) const
{
// 1. Let document be a new XMLDocument
auto xml_document = XMLDocument::create(realm());