W3C home > Mailing lists > Public > www-html-editor@w3.org > January to March 2001

Re: Object elements allowed inside the head in XHTML

From: Ian Jacobs <ij@w3.org>
Date: Mon, 26 Mar 2001 13:11:09 -0500
Message-ID: <3ABF863D.A63F554C@w3.org>
To: Hon Lau <Hon.Lau@MobileAware.com>
CC: "'www-html-editor@w3.org'" <www-html-editor@w3.org>
Hon Lau wrote:
> 
> Folks,
> 
> Just a quick question on object tags in the XHTML1.0 that I hope someone
> would be able to answer .
> In both the Transitional and Stict DTD, it is valid to put object tags
> inside of the head element (see extract below...)
> 
> I believe that the contents of the head document does not get rendered
> inside the browser window,
> so this begs the question of why the object element is specifically allowed
> inside the head element?
> What value does this provide?

There's an example in the HTML 4 spec about "sharing
data among frames" [1], where an object element appearing
in the head of the document may be referenced from any
frame (e.g., from a script).

 _ Ian

[1] http://www.w3.org/TR/html401/present/frames.html#sharing-frame-data

 
> <!--================ Document Head
> =======================================-->
> 
> <!ENTITY % head.misc "(script|style|meta|link|object)*">
> 
> <!-- content model is %head.misc; combined with a single
>      title and an optional base element in any order -->
> 
> <!ELEMENT head (%head.misc;,
>      ((title, %head.misc;, (base, %head.misc;)?) |
>       (base, %head.misc;, (title, %head.misc;))))>
> 
> <!ATTLIST head
>   %i18n;
>   profile     %URI;          #IMPLIED
>   >
> 
> If anyone could provide an answer to it would be much appreciated.
> 
> Cheers,
> 
> Hon
> 
> hlau@mobileaware.com

-- 
Ian Jacobs (jacobs@w3.org)   http://www.w3.org/People/Jacobs
Tel:                         +1 831 457-2842
Cell:                        +1 917 450-8783
Received on Monday, 26 March 2001 13:11:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:53 GMT