This commit is contained in:
Matze2010 2020-03-02 06:10:14 +00:00
parent ad8eeccd72
commit 258b9a65c8
1 changed files with 4 additions and 1 deletions

View File

@ -244,8 +244,11 @@ class Html
protected static function parseInput($node, $element, &$styles)
{
$attributes = $node->attributes;
$inputType = $attributes->getNamedItem('type')->value;
if (null === $attributes->getNamedItem('type')) {
return;
}
$inputType = $attributes->getNamedItem('type')->value;
switch ($inputType) {
case 'checkbox':
$checked = ($checked = $attributes->getNamedItem('checked')) && $checked->value === "true" ?? false;