3 ms·
Chrome explicitly stopped supporting void syntax on the script tag to encourage people to use </script> so IE wouldn't die when it saw a <script />.
by bsimpson 13y ago
Chrome explicitly stopped supporting void syntax on the script tag to encourage people to use </script> so IE wouldn't die when it saw a <script />.
- pbhjpbhj 13y agoThat's messed up - really? Chrome covering up IE's mistakes??
- gpvos 13y agoI think it's awesome, actually. Good neighbourship. Not that they should do this all the time (there would be no end to it), but for the most egregious problems, yes, why not?
- dmethvin 13y agoRead the article, there's no way to specify "optional closing tag depending on whether a `src` property is present" so therefore it's manditory. You can, of course, write the parser to do it, but there isn't a way to express it in the HTML grammar. I always have wished that the script inside the tag would be executed if the `src` couldn't be loaded, which is something John Resig suggested years ago [1]. [1] http://ejohn.org/blog/degrading-script-tags/ http://ejohn.org/blog/degrading-script-tags/