Re: Validator bug: Bad character after <

Назар Мокринський wrote:
> In my code I have part like this:
>     <select>
>          <option value="&lt;">Option</option>
>     </select>
> But anyway validator says:
>     Bad character after <. Probable cause: Unescaped <. Try escaping it
>     as &lt;.
> UTF-8, HTML5

Can't replicate : here is sample code, validated
by direct input.  Unclear why I had to wrap <P>
around the <SELECT> element, but won't validate
without for reasons unrelated to your message.

       <TITLE>My first HTML document</TITLE>
<form action="#">
     <option value="&lt;">Option</option>

Also validates as HTML 4.01 Strict with the appropriate DOCTYPE.

Philip Taylor

Received on Sunday, 5 August 2012 21:37:40 UTC