Why hasn’t `<script>` gotten a (standardized) void version yet?

I know some browsers will recognize

<script src=”file.js”/>

as

<script src=”file.js”></script>

as that’s basically what a void element is.
But, not all browsers do (one being the one I use, FireFox).

Why is this? Ei…

I know some browsers will recognize

<script src="file.js"/>

as

<script src="file.js"></script>

as that's basically what a void element is.
But, not all browsers do (one being the one I use, FireFox).

Why is this? Either you should be able to smush a script into the second in to the second example's body, OR it should always be a viable option to use the first example, because without either the script tag(s) look ugly, and it's wasting some space.

It may not be a huge deal, but I see it as mildly annoying, especially if there are lots of tags grabbing a script from somewhere.


Print Share Comment Cite Upload Translate
CITATION GOES HERE CITATION GOES HERE
Select a language: