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

[whatwg] Object data Attribute

From: Shadow2531 <shadow2531@gmail.com>
Date: Tue, 7 Nov 2006 12:19:13 -0500
Message-ID: <6b9c91b20611070919g1f6bdb8fy52bef362d5ee568f@mail.gmail.com>
On 11/6/06, Lachlan Hunt <lachlan.hunt at lachy.id.au> wrote:
> Hi,
>    Should the data attribute be required for <object>?  There is at


Reason 1:
<object classid="java:MyJavaClass"></object> is used for Java. (
Although I'd love to have <object type="application/java"
data="file.class"></object> work, but ...)

Reason 2:
You might want to load a plugin like this: <object
type="application/x-mplayer2"></object> and later use scripting to
tell the plugin to get the resource. If the data attribute is
required, you'd be forced to load a resource that you didn't want to.

Reason 3:
The tcl plugin <http://www.tcl.tk/software/plugin/> suports inline
scripts via a script param and things like the following need to work
with the data attribute.

<object type="application/x-tcl">
   <param name="script" value="script content">

Received on Tuesday, 7 November 2006 09:19:13 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:49 UTC