Fix crash for browsers that don't support placeholder attribute

This commit is contained in:
Niklas von Hertzen 2013-01-11 19:34:56 +02:00
parent 3032dc6ce0
commit 2f3f27b672

View File

@ -940,12 +940,12 @@ _html2canvas.Parse = function (images, options) {
} }
break; break;
case "TEXTAREA": case "TEXTAREA":
if ((element.value || element.placeholder).length > 0){ if ((element.value || element.placeholder || "").length > 0){
renderFormValue(element, bounds, stack); renderFormValue(element, bounds, stack);
} }
break; break;
case "SELECT": case "SELECT":
if ((element.options||element.placeholder).length > 0){ if ((element.options||element.placeholder || "").length > 0){
renderFormValue(element, bounds, stack); renderFormValue(element, bounds, stack);
} }
break; break;