W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2011

[Bug 12714] <input /> tag not accepted within a <form> block

From: <bugzilla@jessica.w3.org>
Date: Tue, 23 Aug 2011 20:22:22 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1QvxUM-0001kI-TC@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12714

Etienne Miret <elimerl@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |elimerl@gmail.com
         Resolution|                            |INVALID

--- Comment #2 from Etienne Miret <elimerl@gmail.com> 2011-08-23 20:22:22 UTC ---
The <form> element allows only script and block level elements as children:
http://www.w3.org/TR/html4/interact/forms.html#h-17.3

However, form controls, including <input> are inline level elements:
http://www.w3.org/TR/html4/sgml/dtd.html#inline

Thus, the last two <input> in the HTML code given are invalid.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 23 August 2011 20:22:27 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:46 UTC