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

Testing the DOM and head elements at the wrong place

From: Karl Dubost <karl@w3.org>
Date: Mon, 21 May 2007 13:04:27 +0200
Message-Id: <3AD45E8D-6DC8-4684-9282-109AA0EC8442@w3.org>
To: HTML WG <public-html@w3.org>

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

-- 
Karl Dubost - http://www.w3.org/People/karl/
W3C Conformance Manager, QA Activity Lead
   QA Weblog - http://www.w3.org/QA/
      *** Be Strict To Be Cool ***
Received on Monday, 21 May 2007 11:05:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:15:58 GMT