fix
This commit is contained in:
parent
ad8eeccd72
commit
258b9a65c8
|
|
@ -244,8 +244,11 @@ class Html
|
||||||
protected static function parseInput($node, $element, &$styles)
|
protected static function parseInput($node, $element, &$styles)
|
||||||
{
|
{
|
||||||
$attributes = $node->attributes;
|
$attributes = $node->attributes;
|
||||||
$inputType = $attributes->getNamedItem('type')->value;
|
if (null === $attributes->getNamedItem('type')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$inputType = $attributes->getNamedItem('type')->value;
|
||||||
switch ($inputType) {
|
switch ($inputType) {
|
||||||
case 'checkbox':
|
case 'checkbox':
|
||||||
$checked = ($checked = $attributes->getNamedItem('checked')) && $checked->value === "true" ?? false;
|
$checked = ($checked = $attributes->getNamedItem('checked')) && $checked->value === "true" ?? false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue