Przeglądaj źródła

fixed URL resolving

Gildas 7 lat temu
rodzic
commit
b8ead2e9ad
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      lib/single-file/single-file-core.js

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

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