W3C home > Mailing lists > Public > site-comments@w3.org > June 2002

Re: [Moderator Action] The HTML-validator error report.

From: Ian B. Jacobs <ij@w3.org>
Date: Fri, 07 Jun 2002 16:59:09 -0400
Message-ID: <3D011E9D.9000606@w3.org>
To: David Öberg <David.Oberg@ausystem.se>
CC: "'site-comments@w3.org'" <site-comments@w3.org>

David Öberg wrote:
> 
> I tried to validate this text
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
> <html>
> <head>
>   <title>Form</title>
>   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> </head>
> <body>
> <form action="http://www.htmlhelp.com/">
> <input name="name">
> </form>
> </body>
> </html>
> 
> And it didnt pass. when I changed the DOCTYPE to <!DOCTYPE HTML PUBLIC
> "-//W3C//DTD HTML 4.0 Transitional//EN">, it did pass.
> 
> There must be something wrong with the validator, must it not?

In the strict DTD, the FORM element [1] takes block content
(or script content), while the <input> element is inline content.

  _ Ian


[1] http://www.w3.org/TR/html401/interact/forms.html#edef-FORM

-- 
Ian Jacobs (ij@w3.org)   http://www.w3.org/People/Jacobs
Tel:                     +1 718 260-9447
Received on Friday, 7 June 2002 17:01:56 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 23:40:21 UTC