[whatwg] Object data Attribute

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

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>

--
burnout426

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