Fix broken doctype tag

This commit is contained in:
Aria 2023-06-23 00:08:04 -07:00
parent 3eda4380ee
commit cf271e2b5e

View file

@ -27,7 +27,7 @@ public class HTMLElement {
StringBuilder builder = new StringBuilder ( );
if ( "!doctype".equalsIgnoreCase ( tagName ) ) {
builder.append ( "<!" ).append ( tagName ).append ( " " ).append ( text ).append ( ">" );
builder.append ( "<" ).append ( tagName ).append ( " " ).append ( text ).append ( ">" );
for ( HTMLElement child : children ) {
builder.append ( child.generateHTML ( ) );
}