ProAnswers.org

Selfclosing script tags in HTML?

Why don’t Self-closing script tags works?

What is the reason browsers do not correctly recognize:

// self-closing script tag Only this is recognized:

Is it breaking concept of XHTML support?

XHTML 1 specification says:

[С.3. Element Minimization and Empty Element Content](http://www.w3.org/TR/xhtml1/#C_3)




	
		Given an empty instance of an element whose content model is not EMPTY (for example, an empty title or paragraph) do not use the minimized form (e.g. use   and not ).





[XHTML DTD](http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Strict) specifies script tags as:







Hope it helps,