Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Three lines to crash Safari for good | Better HN
Three lines to crash Safari for good
8 points · by
oliverfriedmann
· 10y ago · 4 comments
<style> [class^="randomstring"] { background: white; } </style> <div class="" id="test"></div> <script> document.getElementById("test").attributes.class.value = null; </script>
This should get fixed...
Comments
[–]
blackrose
10y ago
It does some funny things in WebKit for sure. Messes up other JS in Chrome too:
https://html.house/edit/ecf7pczv.html
[–]
ahazred8ta
10y ago
demo on a live webpage --->
https://jsbin.com/lecelimequ/2/edit?html,output
[–]
oliverfriedmann
OP
10y ago
Submitted a bug report to Apple / Safari.
[–]
j_mcnally
10y ago
is this fixed? Doesn't crash me.