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

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