Merge pull request #189 from felfert/master

Fixed parsing of generic INPUT elements on IE9
This commit is contained in:
Niklas von Hertzen 2013-04-09 12:24:32 -07:00
commit 9da3bd7769

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;