Skip to content

Commit e92116f

Browse files
committed
refactor: make it void element to valid schema HTML
1 parent c823018 commit e92116f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

app/Config/DocTypes.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,14 @@ class DocTypes
3030
'xhtml-rdfa-1' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">',
3131
'xhtml-rdfa-2' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">',
3232
];
33+
34+
/**
35+
* Whether to remove the solidus (`/`) character for void HTML elements (e.g. `<input>`)
36+
* for HTML5 compatibility.
37+
*
38+
* Set to:
39+
* `true` - to be HTML5 compatible
40+
* `false` - to be XHTML compatible
41+
*/
42+
public bool $html5 = true;
3343
}

0 commit comments

Comments
 (0)