Wednesday, December 19, 2018

javascript - Why don't self-closing script elements work?




What is the reason browsers do not correctly recognize:







Does this break the concept of XHTML support?



Note: This statement is correct at least for all IE (6-8 beta 2).


Answer



XHTML 1 specification says:



ะก.3. Element Minimization and Empty Element Content




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 specifies script elements as:






No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...