<font size="4"><font face="georgia,serif">Thanks for the fast response. In fact, the code isn't mine, but part of a Google search box, which I use at the end of papers published in the journal (e.g., <a href="http://informationr.net/ir/17-1/paper509.html">http://informationr.net/ir/17-1/paper509.html</a>) - why they specify the input as 'hidden' is a mystery to me :-) I'll try changing it and see what happens. Thanks for the useful link to the table.<br>
</font></font><br><div class="gmail_quote">On 10 April 2012 11:23, Smylers <span dir="ltr"><<a href="mailto:Smylers@stripey.com">Smylers@stripey.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Prof. T.D. Wilson writes:<br>
<br>
> *Error*: Attribute maxlength not allowed on element<br>
> input<<a href="http://www.whatwg.org/specs/web-apps/current-work/#the-input-element" target="_blank">http://www.whatwg.org/specs/web-apps/current-work/#the-input-element</a>><br>
<div class="im">> at this point.<br>
><br>
> From line 342, column 2; to line 342, column 206<br>
><br>
</div>> ht:32;">↩ *<input type="hidden" name="q" maxlength="255" ...<br>
<br>
What are you intending the maxlength attribute to do on a hidden<br>
<input>?<br>
<div class="im"><br>
> However, all the information I can find about both 'maxlength' and<br>
> 'size' (which is also rejected in the same way) tells me that both are<br>
> permitted in html5. Is the validator wrong on this?<br>
<br>
</div>Note the validator says "at this point", not that they are invalid on<br>
all <input> elements.<br>
<br>
This table in the HTML5 spec shows which of <input>'s many attributes,<br>
including maxlength, can be used when:<br>
<a href="http://developers.whatwg.org/the-input-element.html#input-type-attr-summary" target="_blank">http://developers.whatwg.org/the-input-element.html#input-type-attr-summary</a><br>
<br>
Note that XHTML1 (via HTML4) only defines maxlength for <input> elements<br>
with type="text" or "password", so this probably should've been picked<br>
up as a problem in your XHTML1, too.<br>
<br>
Cheers<br>
<br>
Smylers<br>
<font color="#888888">--<br>
<a href="http://twitter.com/Smylers2" target="_blank">http://twitter.com/Smylers2</a><br>
_______________________________________________<br>
Help mailing list<br>
<a href="mailto:Help@lists.whatwg.org">Help@lists.whatwg.org</a><br>
<a href="http://lists.whatwg.org/listinfo.cgi/help-whatwg.org" target="_blank">http://lists.whatwg.org/listinfo.cgi/help-whatwg.org</a><br>
</font></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>----------------------------------------------------------------------</div>Professor T.D. Wilson, PhD, Hed.Dr, PhD (h.c.) <br>----------------------------------------------------------------------<div>
<div style="text-align:justify"><span style="text-align:-webkit-auto">Publisher and Editor in Chief: Information Research: </span></div><div style="text-align:justify"><span style="text-align:-webkit-auto">an international electronic journal </span><br style="text-align:-webkit-auto">
<span style="text-align:-webkit-auto">Website - </span><a href="http://informationr.net/ir/" style="text-align:-webkit-auto" target="_blank">http://InformationR.net/ir/</a><span style="text-align:-webkit-auto"> </span><br style="text-align:-webkit-auto">
<span style="text-align:-webkit-auto">Blog - </span><a href="http://info-research.blogspot.com/" style="text-align:-webkit-auto" target="_blank">http://info-research.blogspot.com/</a></div><div style="text-align:justify">
<span style="text-align:-webkit-auto">Photoblog - </span><a href="http://tomwilson.shutterchance.com/" style="text-align:-webkit-auto" target="_blank">http://tomwilson.shutterchance.com/</a><span style="text-align:-webkit-auto"> </span></div>
</div><div style="text-align:justify"><span style="text-align:-webkit-auto">----------------------------------------------------------------------|</span><br style="text-align:-webkit-auto"><span style="text-align:-webkit-auto">E-mail: </span><a href="mailto:wilsontd@gmail.com" style="text-align:-webkit-auto" target="_blank">wilsontd@gmail.com</a><span style="text-align:-webkit-auto"> </span><br style="text-align:-webkit-auto">
<span style="text-align:-webkit-auto">----------------------------------------------------------------------|</span></div><br>