[whatwg] Handling of script elements inside rendered OBJECT

<object type="text/html" data="about:blank">
    <script>alert('You should not see this!');</script>
</object>

What should happen in situations like that?

The script element is alternate content.
The object is rendered.
The script SHOULD NOT be executed *until* the alernate content is
rendered. (For example, if it's an image, you switch images off and
the alternate content is rendered.)

It makes sense to NOT execute the script in this situation.

However, browsers currently execute the script. (IE6 does not, but
that may be quirky object tag handling.)

-- 
burnout426

Received on Wednesday, 10 May 2006 19:55:49 UTC