1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 19:37:36 +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:
Luke 2021-05-04 21:40:31 +01:00 committed by Linus Groh
parent 5952bc1ea4
commit 7c6c7ca542
4 changed files with 58 additions and 3 deletions

View file

@ -1,6 +1,10 @@
interface DOMImplementation {
Document createHTMLDocument(optional DOMString title);
// FIXME: This is missing "optional DocumentType? doctype = null" at the end.
// FIXME: This should return XMLDocument instead of Document.
[NewObject] Document createDocument(DOMString? namespace, [LegacyNullToEmptyString] DOMString qualifiedName);
[NewObject] Document createHTMLDocument(optional DOMString title);
[NewObject] DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId, DOMString systemId);
boolean hasFeature();