Thursday, February 24, 2011

script tag

This is something that outraged me when I ventured into the la-la land of javascript... :)
If you want to have a <script> tag in html, it can not be something like <script .../>, as any self-respecting tag can do (and a valid scenario when you have a "src" attribute). But rather, you need to have <script ...></script>. This is nuts!
And the reason is that it is not conforming to the xhtml standard as it requires (#PCDATA), thus can not be self-closed...
No matter who comes up with this has to be a nutjob.

No comments: