Skip to content

Commit 08ce6a9

Browse files
committed
Do not merge additional USE element attributes
1 parent 88163cb commit 08ce6a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Svg/Tag/UseTag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function handle($attributes)
8585
}
8686

8787
$mergedAttributes = $this->reference->attributes;
88-
$attributesToNotMerge = ['x', 'y', 'width', 'height'];
88+
$attributesToNotMerge = ['x', 'y', 'width', 'height', 'href', 'xlink:href', 'id'];
8989
foreach ($attributes as $attrKey => $attrVal) {
9090
if (!in_array($attrKey, $attributesToNotMerge) && !isset($mergedAttributes[$attrKey])) {
9191
$mergedAttributes[$attrKey] = $attrVal;

0 commit comments

Comments
 (0)