This enables to focus the search box of google, that has not type attribute.
}
result = webkit_dom_document_evaluate(
- doc, "//input[@type='text']|//input[@type='password']|//textarea",
+ doc, "//input[not(@type) or @type='text' or @type='password']|//textarea",
html, resolver, 0, NULL, NULL
);
if (!result) {
);
case "e":
if (!s) {
- return "//input[@type='text'] | //textarea";
+ return "//input[not(@type) or @type='text'] | //textarea";
}
return buildQuery(
["@value", ".", "@placeholder"],
- "//input[@type='text' and ($@value or $@placeholder)] | //textarea[$.]",
+ "//input[(not(@type) or @type='text') and ($@value or $@placeholder)] | //textarea[$.]",
s
);
case "i":