Don't parse/render input hidden nodes

This commit is contained in:
Niklas von Hertzen
2014-09-14 17:44:55 +03:00
parent 645fcd60b3
commit 9907149513
4 changed files with 15 additions and 5 deletions

View File

@ -18,7 +18,12 @@ NodeContainer.prototype.assignStack = function(stack) {
};
NodeContainer.prototype.isElementVisible = function() {
return this.node.nodeType === Node.TEXT_NODE ? this.parent.visible : (this.css('display') !== "none" && this.css('visibility') !== "hidden" && !this.node.hasAttribute("data-html2canvas-ignore"));
return this.node.nodeType === Node.TEXT_NODE ? this.parent.visible : (
this.css('display') !== "none" &&
this.css('visibility') !== "hidden" &&
!this.node.hasAttribute("data-html2canvas-ignore") &&
(this.node.nodeName !== "INPUT" || this.node.getAttribute("type") !== "hidden")
);
};
NodeContainer.prototype.css = function(attribute) {