mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Added support for "data-html2canvas-ignore" attribute
This commit is contained in:
parent
084bf4b039
commit
7c0b893564
2
.gitignore
vendored
2
.gitignore
vendored
@ -9,5 +9,7 @@
|
|||||||
image.jpg
|
image.jpg
|
||||||
/.project
|
/.project
|
||||||
/.settings/
|
/.settings/
|
||||||
|
node_modules/
|
||||||
.envrc
|
.envrc
|
||||||
|
tests/selenium.js
|
||||||
*.sublime-workspace
|
*.sublime-workspace
|
||||||
|
@ -1271,7 +1271,7 @@ _html2canvas.Parse = function ( images, options ) {
|
|||||||
function parseElement (el, stack) {
|
function parseElement (el, stack) {
|
||||||
|
|
||||||
// skip hidden elements and their children
|
// skip hidden elements and their children
|
||||||
if (getCSS(el, 'display') !== "none" && getCSS(el, 'visibility') !== "hidden") {
|
if (getCSS(el, 'display') !== "none" && getCSS(el, 'visibility') !== "hidden" && !el.hasAttribute("data-html2canvas-ignore")) {
|
||||||
|
|
||||||
stack = renderElement(el, stack) || stack;
|
stack = renderElement(el, stack) || stack;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user