W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2010

[whatwg] <script> features

From: Henri Sivonen <hsivonen@iki.fi>
Date: Tue, 24 Aug 2010 14:38:20 +0300
Message-ID: <ABBF7922-E230-4CB9-9F7F-6718F9031D49@iki.fi>
On Aug 17, 2010, at 07:15, Jonas Sicking wrote:

> These events fire right before and right after a <script> is executed.
> This allows a page to override the context a specific script is
> seeing.

The relative order with onload should be documented.

> (I've written an implementation for firefox for these features here:
> https://bugzilla.mozilla.org/show_bug.cgi?id=587931)

By looking at the patch, it seems that insertion the events fire before document.write() becomes permitted (if applicable) and after it becomes forbidden again. Whether the handlers for these events should be able to call document.write() without blowing away has a dependency on the resolution of http://www.w3.org/Bugs/Public/show_bug.cgi?id=9984 and the relative order of the new events and onload.

-- 
Henri Sivonen
hsivonen at iki.fi
http://hsivonen.iki.fi/
Received on Tuesday, 24 August 2010 04:38:20 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:00 UTC