1
0
Gildas 7 жил өмнө
parent
commit
b8ead2e9ad

+ 1 - 1
lib/single-file/single-file-core.js

@@ -522,7 +522,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 				if (element.href) {
 				if (element.href) {
 					const href = element.href.baseVal ? element.href.baseVal : element.href;
 					const href = element.href.baseVal ? element.href.baseVal : element.href;
 					const normalizedHref = DomUtil.normalizeURL(href);
 					const normalizedHref = DomUtil.normalizeURL(href);
-					if (!normalizedHref || normalizedHref != this.baseURI) {
+					if (normalizedHref == href && href) {
 						element.setAttribute("href", href);
 						element.setAttribute("href", href);
 					}
 					}
 				}
 				}