[whatwg] <script> features

Henri Sivonen hsivonen at iki.fi
Tue Aug 24 04:38:20 PDT 2010


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/





More information about the whatwg mailing list