- Fix parsing of input fields on IE9

This commit is contained in:
Fritz Elfert 2013-04-07 21:56:49 +02:00
parent cf735a9fa1
commit 85fa81ad95

View File

@ -1017,7 +1017,7 @@ _html2canvas.Parse = function (images, options) {
case "INPUT":
// TODO add all relevant type's, i.e. HTML5 new stuff
// todo add support for placeholder attribute for browsers which support it
if (/^(text|url|email|submit|button|reset)$/.test(element.type) && (element.value || element.placeholder).length > 0){
if (/^(text|url|email|submit|button|reset)$/.test(element.type) && (element.value || element.placeholder || "").length > 0){
renderFormValue(element, bounds, stack);
}
break;