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

This commit is contained in:
UnlegitDqrk
2026-03-02 18:29:54 +01:00
parent ca19d32e35
commit 0a69187992
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.openautonomousconnection</groupId>
<artifactId>WebServer</artifactId>
<version>1.0.1-BETA.0.4</version>
<version>1.0.1-BETA.0.5</version>
<description>The default DNS-Server</description>
<url>https://open-autonomous-connection.org/</url>
<issueManagement>

View File

@@ -42,11 +42,11 @@ public abstract class WebPage {
*/
public WebPage() {
this.document = documentBuilder.newDocument();
this.head = (HTMLHeadElement) this.document.createElement("head");
this.body = (HTMLBodyElement) this.document.createElement("body");
this.document.appendChild(this.head);
this.document.appendChild(this.body);
}