1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:47:44 +00:00

LibWeb: Add the Document.documentElement API

Also change DOM::Document::document_element() to return an Element*
and not an HTML::HTMLHtmlElement since that's not the only kind of
documentElement we might encounter.
This commit is contained in:
Andreas Kling 2020-08-03 13:30:18 +02:00
parent 64a82100bd
commit e27726dc92
4 changed files with 12 additions and 3 deletions

View file

@ -0,0 +1,8 @@
loadPage("file:///res/html/misc/blank.html");
afterInitialPageLoad(() => {
test("Basic functionality", () => {
expect(document.documentElement).not.toBe(null);
expect(document.documentElement.nodeName).toBe("html");
});
});