[whatwg] Object data Attribute

Shadow2531 shadow2531 at gmail.com
Thu Nov 16 22:38:25 PST 2006


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



More information about the whatwg mailing list