Under html5, a self-closing script tag is illegal and causes an error in head which invalidates the remainder of the document according to the rules for parsing html5 in browsers.
Under xhtml, it may be allowed but is really a bad choice especially for WebKit based browsers and browser based ePub readers, just like self-closing title tags for example. I can special case it if need be in mend if not already fixed.
|