Skip to content

Commit

Permalink
fix: empty attribute in html filter (#1824)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny authored Oct 25, 2023
1 parent 434d9e9 commit 4147ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Renderer/Extension/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4147ed1

Please sign in to comment.