W3C home > Mailing lists > Public > www-validator@w3.org > September 2001

XHTML + <form ...> </form> BUG?

From: Sebastian Boschert <sebi@foo.dyndns.org>
Date: Sun, 23 Sep 2001 17:46:13 +0200
Message-Id: <200109231538.f8NFc0f02025@foo.dyndns.org>
To: www-validator@w3.org
Hello!

For hours I have tried to get the following for validate, but for some
reason, I always get an "element 'input' not allowed here; possible cause is
an inline element containing a block-level element" error. Am I just too
dumb or is it a bug in the validator?

Oh, here's the piece of code that I can't get validated:

--------------------

<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Some weird test that does not work</title>

  <link rel="stylesheet" type="text/css" href="./stylesheet.css" />
</head>
<body>

<div class="notes">Some text here...</div>

<form action="test" method="post">
<input type="text" name="a" ></input>
</form>

</body>
</html>

--------------------

Please send me a private Cc e-mail if you know what the problem is since I
need to solve this problem as soon as possible.
Thank you very much in advance!

Sebastian
Received on Sunday, 23 September 2001 11:46:16 GMT

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