Skip to content

Commit

Permalink
fix mergeHtmlAttributes for entries like value="0"
Browse files Browse the repository at this point in the history
  • Loading branch information
voku authored Jul 3, 2024
1 parent e477d31 commit 0a5d469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/voku/helper/HtmlDomHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static function mergeHtmlAttributes(
}

foreach ($attributes as $attributeName => $attributeValue) {
$domElement->setAttribute($attributeName, $attributeValue);
$domElement->setAttribute($attributeName, $attributeValue, true);
}

return $domElement->html();
Expand Down

0 comments on commit 0a5d469

Please sign in to comment.