[whatwg] Attribute datatypes on <embed>

Shadow2531 shadow2531 at gmail.com
Thu Nov 9 09:12:50 PST 2006

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.


More information about the whatwg mailing list