mirror of
https://github.com/svg/svgo.git
synced 2026-01-25 18:41:39 +03:00
24 lines
591 B
Plaintext
24 lines
591 B
Plaintext
If making different modifications to two different nodes in the same parent,
|
|
drop attributes and collapse nodes appropriately without losing elements.
|
|
|
|
===
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" version="1.1">
|
|
<script>alert('uwu')</script>
|
|
<g onclick="alert('uwu')">
|
|
<text y="10">uwu</text>
|
|
</g>
|
|
<a href="javascript:(() => { alert('uwu') })();">
|
|
<text y="20">uwu</text>
|
|
</a>
|
|
</svg>
|
|
|
|
@@@
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" version="1.1">
|
|
<g>
|
|
<text y="10">uwu</text>
|
|
</g>
|
|
<text y="20">uwu</text>
|
|
</svg>
|