Fixed mistake where document doesn't actually have the created body or head in WebPage.java

This commit is contained in:
Tinglyyy
2026-03-02 17:41:39 +01:00
parent 2d63489b86
commit 8ffc5fb5ec

View File

@@ -44,6 +44,10 @@ public abstract class WebPage {
this.head = (HTMLHeadElement) this.document.createElement("head"); this.head = (HTMLHeadElement) this.document.createElement("head");
this.body = (HTMLBodyElement) this.document.createElement("body"); this.body = (HTMLBodyElement) this.document.createElement("body");
this.document.appendChild(this.head);
this.document.appendChild(this.body);
} }
/** /**