소스 검색

added area tag

Gildas 7 년 전
부모
커밋
c898269acf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/single-file/single-file-core.js

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

@@ -602,7 +602,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 		}
 
 		resolveHrefs() {
-			this.doc.querySelectorAll("a[href], link[href]").forEach(element => {
+			this.doc.querySelectorAll("a[href], area[href], link[href]").forEach(element => {
 				const href = element.getAttribute("href").trim();
 				if (!Util.testIgnoredPath(href) && !href.startsWith("#")) {
 					try {