From 85fa81ad954d1960494301cf09c24c3cdfe572a9 Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Sun, 7 Apr 2013 21:56:49 +0200 Subject: [PATCH] - Fix parsing of input fields on IE9 --- src/Parse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Parse.js b/src/Parse.js index 7229af7..b3eefe0 100644 --- a/src/Parse.js +++ b/src/Parse.js @@ -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;