|
|
@@ -500,7 +500,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
DomProcessorHelper.processAttribute(this.doc.querySelectorAll("video[poster]"), "poster", this.baseURI),
|
|
|
DomProcessorHelper.processAttribute(this.doc.querySelectorAll("*[background]"), "background", this.baseURI),
|
|
|
DomProcessorHelper.processAttribute(this.doc.querySelectorAll("image"), "xlink:href", this.baseURI),
|
|
|
- DomProcessorHelper.processSVGImages(this.doc.querySelectorAll("use"), "xlink:href", this.baseURI),
|
|
|
+ DomProcessorHelper.processXLinks(this.doc.querySelectorAll("use"), "xlink:href", this.baseURI),
|
|
|
DomProcessorHelper.processSrcset(this.doc.querySelectorAll("[srcset]"), "srcset", this.baseURI)
|
|
|
];
|
|
|
if (!this.options.removeAudioSrc) {
|
|
|
@@ -775,7 +775,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
}));
|
|
|
}
|
|
|
|
|
|
- static async processSVGImages(resourceElements, baseURI) {
|
|
|
+ static async processXLinks(resourceElements, baseURI) {
|
|
|
await Promise.all(Array.from(resourceElements).map(async resourceElement => {
|
|
|
const originalResourceURL = resourceElement.getAttribute("xlink:href");
|
|
|
if (originalResourceURL) {
|