Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: WWW::Mechanize Unknown input type 'search'

by zer (Deacon)
on Nov 08, 2007 at 05:18 UTC ( #649652=note: print w/replies, xml ) Need Help??

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

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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://649652]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2022-08-18 04:38 GMT
Find Nodes?
    Voting Booth?

    No recent polls found