I’m trying to extract all the form inputs, which their type is text.
My problem is, at least in Chrome, that’s an input tag, without the type attribute specified, is rendered as text.
How can I find all the tags which their type is no specified, or it’s value is text with simple html dom?
My current:
foreach ($form->find('input[type=text]') as $input)
I’m afraid you might have to do this:
Unless the parser can use this type of selector:
input[type=''],input[type=text]In JQuery, that would select all elements with either no type or type equals to text.