diff --git a/src/TagTrait.php b/src/TagTrait.php index e651898..88c313e 100644 --- a/src/TagTrait.php +++ b/src/TagTrait.php @@ -99,7 +99,7 @@ trait TagTrait //build attributes if ($attr = $this->htmlAttributes()) { foreach ($attr as $key => $value) { - if (!"$value") { + if ($value === null) { $out .= " $key"; } else { $value = htmlspecialchars($value);