Fixed mistake where document doesn't actually have the created body or head in WebPage.java
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user