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

[whatwg] Attribute datatypes on <embed>

From: Shadow2531 <shadow2531@gmail.com>
Date: Thu, 9 Nov 2006 12:12:50 -0500
Message-ID: <6b9c91b20611090912q7686f75bqde27009b11365847@mail.gmail.com>
On 11/9/06, Henri Sivonen <hsivonen at iki.fi> wrote:
> How does <embed> allowing any attribute in no namespace interact with
> attributes that are defined to apply to all elements? That is, should
> datatype constraints on common attributes apply?
>
> For example, is dir="blahblah" a conforming attribute on <embed>?

Good question.

<embed type="type" src="file.ext" dir="/pics">

In this case, the dir attribute is meant to be a param that specifies
a directory that the plugin will use for whatever reason.

Are common attributes reserved and therefore can't be used as params?

Should the UA make sure it doesn't pass any common attributes to the plugin?

If no, and dir can be a param of whatever type you want, it should not
have any constraints.

Basically, would this be a correct assumption?

Common attributes are reserved. They do not act as params and should
not be passed to the plugin as params. Therefore their values still
need to follow the contraints laid out for their type.

-- 
burnout426
Received on Thursday, 9 November 2006 09:12:50 UTC

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