CSE HTML validator doesn't catch this error

For technical support and bug reports for all editions of CSS HTML Validator, including htmlval for Linux and Mac.
Frontier
Rank I - Novice
Posts: 15
Joined: Fri May 19, 2006 2:18 am
Location: Denmark

CSE HTML validator doesn't catch this error

Post by Frontier »

Just noticed this on a page: if any input field is outside a form area, CSE validator still says that the page is OK.

Example
<input type="text" name="mytext" value="" size="10" maxlength="10">
<form name="test" action="blabla.asp" method="post">
</form>


...just for letting the author(s) know...

Sincerely,
Klaus J.
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX

Post by Albert Wiersch »

Hello Klaus,

In HTML 4.01, the form controls like "input", "select", "textarea", "label", and "button" do not have to be in a form.

However, if you wanted to, you could use the Configuration Editor (professional edition only) to require that "input" be in a form when it's used.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial