I'm learning DOM XSS and I have this code :
<html>
<body>
Select your language:
<select>
<script>
document.write("<OPTION value=1>"+document.location.href.substring(document.location.href.indexOf("default=")+8)+"</OPTION>");
document.write("<OPTION value=2>English</OPTION>");
</script>
</select>
</body>
</html>
but I don't understand why this payload doesn't trigger any XSS :
t.html?default=test</option><img src=x onerror=alert(1)/>
It looks like the symbols are encoded and I don't understand why...
I took the script from https://www.owasp.org/index.php/DOM_Based_XSS so I guess it's vulnerable but I don't know how to exploit it...