html2canvas-pro 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/html2canvas-pro.esm.js +6 -5
- package/dist/html2canvas-pro.esm.js.map +1 -1
- package/dist/html2canvas-pro.js +6 -5
- package/dist/html2canvas-pro.js.map +1 -1
- package/dist/html2canvas-pro.min.js +2 -2
- package/dist/lib/dom/document-cloner.js +5 -4
- package/dist/lib/dom/document-cloner.js.map +1 -1
- package/karma.conf.cjs +6 -1
- package/package.json +5 -4
package/dist/html2canvas-pro.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* html2canvas-pro 2.0.
|
|
2
|
+
* html2canvas-pro 2.0.3 <https://yorickshan.github.io/html2canvas-pro/>
|
|
3
3
|
* Copyright (c) 2024-present yorickshan and html2canvas-pro contributors
|
|
4
4
|
* Released under MIT License
|
|
5
5
|
*/
|
|
@@ -6592,10 +6592,11 @@
|
|
|
6592
6592
|
return iframe;
|
|
6593
6593
|
});
|
|
6594
6594
|
/**
|
|
6595
|
-
* The
|
|
6596
|
-
*
|
|
6597
|
-
*
|
|
6598
|
-
|
|
6595
|
+
* The base URI used for resolving relative URLs (e.g. background-image) in the clone.
|
|
6596
|
+
* Must come from the source document: the iframe document is about:blank, so
|
|
6597
|
+
* documentClone.baseURI would break getComputedStyle() for relative background URLs.
|
|
6598
|
+
*/
|
|
6599
|
+
const baseUri = ownerDocument.baseURI;
|
|
6599
6600
|
documentClone.open();
|
|
6600
6601
|
const rawHTML = serializeDoctype(document.doctype) + '<html></html>';
|
|
6601
6602
|
try {
|