[whatwg] Handling of script elements inside rendered OBJECT

Shadow2531 shadow2531 at gmail.com
Wed May 10 19:55:49 PDT 2006


<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


More information about the whatwg mailing list