That was exactly my thinking. It can and never should happen. The reason
I ask such a crazy question is because I might be in a situation where I
need to bring code up to standards where practices such as these and
worse has been used.
What I have also seen in the code base is <script type="text/javascript"
src="xx.xx"></script> being used before the DOCTYPE :o as well as a
bunch of pages with no DOCTYPE at all. I am sure this places a huge
amount of processing and guess work on the browser trying to interpret
the page.
I know that it is definitely breaking the DOM rendering as I have had to
take steps to get scripts called only onload by placing a <script
type="text/javascript" src="xx.xx"></script> just before the closing
body tag. Something I would never do in general.
David Dorward wrote:
On Sat, Jan 27, 2007 at 12:58:40AM +0200, Schalk wrote:
First question on this thread I am starting here is, is there a case
where it would be ok/understandable to have code between </body> and
</html>?
From: http://www.w3.org/TR/html4/struct/global.html#h-7.3
<!ELEMENT HTML O O (%html.content;) -- document root element -->
The element HTML (with optional start and end tags) contains "html.content"
<!ENTITY % html.content "HEAD, BODY">
"html.content" consists of exactly one HEAD element followed by
exactly one BODY element.
That doesn't leave any provision for anything following the BODY
element.
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************