W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2006

[whatwg] Handling of script elements inside rendered OBJECT

From: Shadow2531 <shadow2531@gmail.com>
Date: Wed, 10 May 2006 22:55:49 -0400
Message-ID: <6b9c91b20605101955x10377bbag3e5bc05a56d80ce0@mail.gmail.com>
<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

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