mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWeb: Add createDocument and createDocumentType for DOMImplementation
Both required for the acid3 test. createDocument is used extensively in Web Platform Tests.
This commit is contained in:
@@ -25,7 +25,10 @@ public:
|
||||
return adopt_ref(*new DOMImplementation(document));
|
||||
}
|
||||
|
||||
const NonnullRefPtr<Document> create_html_document(const String& title) const;
|
||||
// FIXME: Add optional DocumentType once supported by IDL
|
||||
NonnullRefPtr<Document> create_document(const String&, const String&) const;
|
||||
NonnullRefPtr<Document> create_html_document(const String& title) const;
|
||||
NonnullRefPtr<DocumentType> create_document_type(const String&, const String&, const String&) const;
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
|
||||
bool has_feature() const { return true; }
|
||||
|
||||
Reference in New Issue
Block a user