by Leon Rosenshein

WAT?

I was working on the Infra dashboard yesterday and had a problem with one of my <script> tags. There's some bug somewhere that was translating

 <script type="method">
    if (Math.random() &lt; 0.05) {
      document.getElementById('logo').src = '/static/other.png';
    }
</script>

to

 &lt;script type="method">
    if (Math.random() &lt; 0.05) {
      document.getElementById('logo').src = '/static/other.png';
    }
  &lt;/script>

And of course, that didn't work. Turns out that there's a parsing bug somewhere and removing the type="method" from the <script> tag makes it work. My first reaction to figuring this out was WatAccording to XKCD there are 10000 people who will learn about Wat? today. If you're one of the lucky 10000, enjoy