|
|
@@ -1072,6 +1072,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
let resourceURL = resourceElement.getAttribute(attributeName);
|
|
|
if (resourceURL) {
|
|
|
resourceURL = DomUtil.normalizeURL(resourceURL);
|
|
|
+ resourceElement.setAttribute(attributeName, EMPTY_IMAGE);
|
|
|
if (resourceURL && resourceURL != baseURI && DomUtil.testValidPath(resourceURL)) {
|
|
|
try {
|
|
|
const { content, indexResource, duplicate } = await batchRequest.addURL(new URL(resourceURL, baseURI).href);
|
|
|
@@ -1084,12 +1085,10 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
} else {
|
|
|
resourceElement.setAttribute(attributeName, content);
|
|
|
}
|
|
|
- } else {
|
|
|
- resourceElement.setAttribute(attributeName, EMPTY_IMAGE);
|
|
|
}
|
|
|
}
|
|
|
} catch (error) {
|
|
|
- resourceElement.setAttribute(attributeName, EMPTY_IMAGE);
|
|
|
+ /* ignored */
|
|
|
}
|
|
|
}
|
|
|
}
|