http://qs1969.pair.com?node_id=649652


in reply to WWW::Mechanize Unknown input type 'search'

Ok,
Thanks to tye getting me in the right direction. The page being called had a:
<input id="q" class="search inputsearch inputtext" name="q" type="sear +ch" ...

This caused the HTML::Form module to have problems as "The following type names are used: "text", "password", "hidden", "textarea", "file", "image", "submit", "radio", "checkbox" and "option"." Which is the xhtml standard.

With a deeper look this doesn't appear to be a problem with HTML::Form though. Probably something syntactic with undefined values in my own code.

Replies are listed 'Best First'.
Re^2: WWW::Mechanize Unknown input type 'search'
by Archon810 (Initiate) on Jun 20, 2008 at 20:03 UTC
    type="search" is not an HTML standard. It seems to be some sort of custom WebKit property. I've spoken to Andy Lester, the writer of WWW::Mech, and he said the only way to prevent warnings is to actually disable them with local $^W=0 or a more flexible reassigning of $SIG{__WARN__} to filter your warnings.