Commit bb706acd bb706acdf38f30d2380ebd3897ba1d4cee74430c by Andy Gardner

Handle form elements in fetchText

1 parent df30390d
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
230 var text = '', elements = this.findAll(selector); 230 var text = '', elements = this.findAll(selector);
231 if (elements && elements.length) { 231 if (elements && elements.length) {
232 Array.prototype.forEach.call(elements, function _forEach(element) { 232 Array.prototype.forEach.call(elements, function _forEach(element) {
233 text += element.textContent || element.innerText; 233 text += element.textContent || element.innerText || element.value;
234 }); 234 });
235 } 235 }
236 return text; 236 return text;
......