mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
- Fetch images of current element only
This commit is contained in:
parent
0b65f2e415
commit
4aeceabc2b
@ -12,7 +12,7 @@ _html2canvas.Preload = function( options ) {
|
|||||||
count = 0,
|
count = 0,
|
||||||
element = options.elements[0] || document.body,
|
element = options.elements[0] || document.body,
|
||||||
doc = element.ownerDocument,
|
doc = element.ownerDocument,
|
||||||
domImages = doc.images, // TODO probably should limit it to images present in the element only
|
domImages = element.getElementsByTagName('img'), // Fetch images of the present element only
|
||||||
imgLen = domImages.length,
|
imgLen = domImages.length,
|
||||||
link = doc.createElement("a"),
|
link = doc.createElement("a"),
|
||||||
supportCORS = (function( img ){
|
supportCORS = (function( img ){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user