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>
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
Depends on:
Reported: 2009-02-21 05:46 UTC by Chris
Modified: 2009-02-22 18:27 UTC (History)
0 users

See Also:


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" "">
<html xmlns="">

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

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



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]".