views:

41

answers:

1

Hi,

This might sound like a reaaaally dumb question but...

why do browsers have a fit with this syntax:

<script type='text/javascript' src="/path/to/my.js" />

and want this instead

<script type='text/javascript' src="/path/to/my.js"></script>

Seems the first construct should be valid since there's no inner content to the tag..

?

A: 

http://stackoverflow.com/questions/69913/why-dont-self-closing-script-tags-work

Dustin Laine
ahhh.. kinda explains it
Ben