Closed halfmoonui closed 6 months ago
With an input like this, we run into a clobbering issue as follows:
<form name="hello">
<input name="name">
</form>
<script>alert(document.forms[0].name)</script>
compared to...
<form name="hello">
<input name="foo">
</form>
<script>alert(document.forms[0].name)</script>
But, with the SANITIZE_NAMED_PROPS
flag, you should be able to control this behavior.
Bug
The issue is pretty self-explanatory.
name="name"
should not be purified, right?Input
Given output
Expected output