diff options
author | Andrew Dolgov <[email protected]> | 2023-04-11 07:19:49 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-04-11 07:19:49 +0300 |
commit | 8ce9ca1d928bda4b2721dfda03dbf2831b12626c (patch) | |
tree | be881bed89d6cb977d4f68aeaa28cd0af9b9728d /lib/epub.js/src/utils/core.js | |
parent | a72807a9b1c4d6b6688b86abd4b7b71feaea3ca0 (diff) |
bump epubjs to 0.3.93
Diffstat (limited to 'lib/epub.js/src/utils/core.js')
-rw-r--r-- | lib/epub.js/src/utils/core.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/epub.js/src/utils/core.js b/lib/epub.js/src/utils/core.js index 5c83944..9490207 100644 --- a/lib/epub.js/src/utils/core.js +++ b/lib/epub.js/src/utils/core.js @@ -2,7 +2,7 @@ * Core Utilities and Helpers * @module Core */ -import { DOMParser as XMLDOMParser } from "xmldom"; +import { DOMParser as XMLDOMParser } from "@xmldom/xmldom"; /** * Vendor prefixed requestAnimationFrame @@ -322,7 +322,7 @@ export function nodeBounds(node) { } /** - * Find the equivelent of getBoundingClientRect of a browser window + * Find the equivalent of getBoundingClientRect of a browser window * @returns {{ width: Number, height: Number, top: Number, left: Number, right: Number, bottom: Number }} * @memberof Core */ @@ -447,7 +447,7 @@ export function createBase64Url(content, mime){ return; } - data = btoa(encodeURIComponent(content)); + data = btoa(content); datauri = "data:" + mime + ";base64," + data; @@ -590,7 +590,7 @@ export function sprint(root, func) { * @memberof Core * @param {element} root element to start with * @param {function} func function to run on each element - * @param {function | object} filter funtion or object to filter with + * @param {function | object} filter function or object to filter with */ export function treeWalker(root, func, filter) { var treeWalker = document.createTreeWalker(root, filter, null, false); @@ -653,7 +653,7 @@ export function defer() { */ this.resolve = null; - /* A method to reject the assocaited Promise with the value passed. + /* A method to reject the associated Promise with the value passed. * If the promise is already settled it does nothing. * * @param {anything} reason: The reason for the rejection of the Promise. @@ -702,7 +702,7 @@ export function querySelectorByType(html, element, type){ } /** - * Find direct decendents of an element + * Find direct descendents of an element * @param {element} el * @returns {element[]} children * @memberof Core @@ -734,7 +734,7 @@ export function parents(node) { } /** - * Find all direct decendents of a specific type + * Find all direct descendents of a specific type * @param {element} el * @param {string} nodeName * @param {boolean} [single] |