浏览代码

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 {