Skip to content

Commit db61056

Browse files
committed
Removed the value attribute from the empty config which removed attributes when they are an empty string, but in the case of input type radio and checkbox, the default value is "on".
1 parent 438ef95 commit db61056

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/htmldoc/htmldoc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class htmldoc {
7575
'type' => 'text'
7676
]
7777
],
78-
'empty' => ['id', 'class', 'style', 'title', 'action', 'value', 'alt', 'lang', 'dir', 'onfocus', 'onblur', 'onchange', 'onclick', 'ondblclick', 'onmousedown', 'onmouseup', 'onmouseover', 'onmousemove', 'onmouseout', 'onkeypress', 'onkeydown', 'onkeyup'], // attributes to remove if empty
78+
'empty' => ['id', 'class', 'style', 'title', 'action', 'alt', 'lang', 'dir', 'onfocus', 'onblur', 'onchange', 'onclick', 'ondblclick', 'onmousedown', 'onmouseup', 'onmouseover', 'onmousemove', 'onmouseout', 'onkeypress', 'onkeydown', 'onkeyup'], // attributes to remove if empty
7979
'urls' => ['href', 'src', 'action', 'poster'], // attributes to minify URLs in
8080
'urlskip' => [
8181
'link' => [

0 commit comments

Comments
 (0)