W3C home > Mailing lists > Public > public-html@w3.org > May 2007

Re: Testing the DOM and head elements at the wrong place

From: Dão Gottwald <dao@design-noir.de>
Date: Mon, 21 May 2007 14:08:06 +0200
Message-ID: <46518BA6.60108@design-noir.de>
To: Karl Dubost <karl@w3.org>
CC: HTML WG <public-html@w3.org>

Firefox 3.0a5pre moves all but <style> in to the head, see 
<https://bugzilla.mozilla.org/show_bug.cgi?id=308145>.

--Dao

Karl Dubost schrieb:
> 
> Hi,
> 
> After a discussion on IRC, I decided to create a quick test to see what 
> was happening with elements put in the wrong place. For example when you 
> put an element (link, base, etc.) in the "body" which is supposed to be 
> in "head".
> 
> I have created an [HTML 4.01 test file][1] for this purpose
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
>     <html lang="en">
>     <head>
>     <title>Invalid HTML 4.01 Test file</title>
>     </head>
>     <body>
>     <meta name="author" content="Karl Dubost">
>         <link rel="stylesheet" href="/2005/10/w3cdoc.css" 
> type="text/css" media="screen" title="no title" charset="utf-8">
>         <base href="http://www.w3.org" target="_new">
>         <style type="text/css" media="screen">
>             /*style element*/
>         </style>
>         <title>Title in the body</title>
>     </body>
>     </html>
> 
> And I have used the [DOM Live Viewer][2] from Ian Hickson
> 
> The results so far are interesting. If you could send me the results you 
> get with the
> 
> * Name of the browser
> * Product version
> * the results: B, H, R
>     B: the element is left in the body in the DOM view
>     H: the element is put in the head in the DOM view
>     R: the element is removed in the DOM view
> 
> that would be very helpful.
> 
> 
> 
> 
> [1]: http://www.w3.org/2007/05/dom-html401.html
> [2]: http://software.hixie.ch/utilities/js/live-dom-viewer/
> [3]: http://www.w3.org/2007/05/dom-head-body.xhtml
> 
Received on Monday, 21 May 2007 12:08:37 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:44 UTC