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

[whatwg] Object data Attribute

From: Shadow2531 <shadow2531@gmail.com>
Date: Fri, 17 Nov 2006 01:38:25 -0500
Message-ID: <6b9c91b20611162238x5d9e1ec8lc3b2e62e91a75bd3@mail.gmail.com>
On 11/7/06, Shadow2531 <shadow2531 at gmail.com> wrote:
> On 11/6/06, Lachlan Hunt <lachlan.hunt at lachy.id.au> wrote:
> > Hi,
> >    Should the data attribute be required for <object>?
>
> No.
>
> 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">
> </object>

Note that the embed element should not require the src attribute for
the same reasons.

For example, this needs to be be allowed:

<embed type="application/x-java-applet" code="MyJavaClass">

-- 
burnout426
Received on Thursday, 16 November 2006 22:38:25 UTC

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