Skip to content

Commit 796e926

Browse files
authored
Modification to prepend html5 doctype
As per w3 standard, for an html page there must be a doctype declared in the first line. This modification declares <!DOCTYPE> which represents HTML5 compliant markup.
1 parent 5d3e165 commit 796e926

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/net/itarray/automotion/internal/HtmlReportBuilder.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ private void writeReport(String reportName) throws IOException, ParseException {
5858

5959
private Html buildHtml() throws IOException, ParseException {
6060
return new Html(null, new Style("background-color: rgb(255,250,250)")) {{
61+
super.setPrependDocType(true);
6162
new Head(this) {{
6263
new TitleTag(this) {{
6364
new NoTag(this, "Automotion report");

0 commit comments

Comments
 (0)