diff --git a/src/Renderer/Extension/Core.php b/src/Renderer/Extension/Core.php index c96a59638..142b0ea59 100644 --- a/src/Renderer/Extension/Core.php +++ b/src/Renderer/Extension/Core.php @@ -526,7 +526,7 @@ public function html(array $context, Asset $asset, array $attributes = [], array // builds HTML attributes foreach ($attributes as $name => $value) { $attribute = sprintf(' %s="%s"', $name, $value); - if (empty($value)) { + if (!isset($value)) { $attribute = sprintf(' %s', $name); } $htmlAttributes .= $attribute;