W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2007

[whatwg] Apply script.defer to internal scripts

From: Alexey Feldgendler <alexey@feldgendler.ru>
Date: Thu, 29 Mar 2007 09:25:21 +0200
Message-ID: <op.tpxv8j2i1h6og4@pita.feldgendler.ru>
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

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:33 UTC