Re: //head/object

On May 3, 2010, at 17:55, Toby Inkster wrote:

> I was thinking of using <object> in <head> as a way of embedding RDFa
> or microdata without disturbing the appearance of the page.

That doesn't seem like a legitimate use case of <object> to me. Rather, it seems like a way of exploiting the limitations of DTD-based validation. If you are using <object> for a purpose other than embedding an external resource, you are misusing <object> that already does too many things.

> Filing a bug against html5-diffs seems to beg the bigger question of
> whether <object> should be allowed inside <head>. I can't find any
> record of this having been discussed - the HTML5 draft spec seems to
> have just accepted the behaviour of Opera, Gecko and WebKit, even
> though it goes against the HTML 4 specification, and against Internet
> Explorer's behaviour.

What HTML 4 said doesn't really matter. What Opera, Gecko, WebKit and IE do does. When there's a 3 vs. 1 situation with 3 on the side of parser simplicity, I think the spec should follow the 3.

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/

Received on Tuesday, 4 May 2010 08:35:58 UTC