W3C home > Mailing lists > Public > www-validator@w3.org > November 2002

<link /> confuses the validator

From: Morten Nielsen <mn@iter.dk>
Date: Sun, 24 Nov 2002 08:55:55 -0500 (EST)
Message-ID: <006201c293c1$9fb69730$edde26c0@o57>
To: <www-validator@w3.org>




How come this validates against HTML4.01 Transitional:
    <html>
      <head>
        <title>iter.dk - About</title>
        <link rel="stylesheet" type="text/css" href="css/iter.css">
      </head>
    <body>
    [etc...]

But this doesn't:
    <html>
      <head>
        <title>iter.dk - About</title>
        <link rel="stylesheet" type="text/css" href="css/iter.css" />
      </head>
    <body>
    [etc...]

The only difference is the "/" at the end of the <link> tag.
This is the error I'm getting:
----------------------------------------------
Line 9, column 6:
  </head>
       ^
Error: end tag for element "HEAD" which is not open; try removing the end
tag or check for improper nesting of elements
----------------------------------------------

This looks like an error in the validator. The <head> tag is open. The page
validates nicely against XHTML 1.0 Transitional.

Reference:
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.iter.dk%2Fabout.aspx&char
set=%28detect+automatically%29&doctype=HTML+4.01+Transitional

Regards
/Morten Nielsen
Received on Sunday, 24 November 2002 17:14:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:04 GMT