This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 6605 - XHTML 1.0 Strict doesn't accept <input> tag in <form>
Summary: XHTML 1.0 Strict doesn't accept <input> tag in <form>
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: HEAD
Hardware: All All
: P5 blocker
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-21 05:46 UTC by Chris
Modified: 2009-02-22 18:27 UTC (History)
0 users

See Also:


Attachments

Description Chris 2009-02-21 05:46:16 UTC
I've tried to validate this code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Calculator</title>
</head>
<body>

<form method="get" action="./">

<input type="text" value="" name="ii" />

</form>

</body>
</html>

But it doesn't accept the <input> tag. It says 

Line 10, Column 39: document type does not allow element "input" here; missing one of ...[a long list of tags]... start-tag

It works in XHTML Transitional, though.
Comment 1 Ville Skyttä 2009-02-22 18:27:23 UTC
As the validator says, <input> is not allowed directly in <form> in XHTML 1.0 Strict.  Wrap it in one of the "[a long list of tags]".