[whatwg] Apply script.defer to internal scripts

On Thu, 29 Mar 2007 09:19:47 +0200, Kristof Zelechovski  
<giecrilj at stegny.2a.pl> wrote:

>>> The script embedded here is so short and specific that it makes no  
>>> sense
>>> relaying it to an external location; however, if the script is not
>>> deferred, the script fails with an exception at run time because the
>>> document body is not constructed yet.

>> What's wrong with simply placing it after </body>?

> You do not place a script element after the body element:
> 3.6.1. The html element
> Content model:
>     A head element followed by a body element.

Sorry, immediately before </body>.


-- 
Alexey Feldgendler <alexey at feldgendler.ru>
[ICQ: 115226275] http://feldgendler.livejournal.com

Received on Thursday, 29 March 2007 00:25:21 UTC