Permalink
Browse files

hints-ext: area tag を含めるように追加

  • Loading branch information...
caisui committed Dec 3, 2011
1 parent bd8d8e4 commit 02637f71d78fd37f8a2ad232810bf0f3a2c1015b
Showing with 5 additions and 0 deletions.
  1. +5 −0 plugin/hints-ext.js
View
@@ -228,6 +228,11 @@ _generate: function _generate(win, screen) {
if (item.nodeType == Node.ELEMENT_NODE)
b[k++] = item;
}
+
+ //xxx: HTMLAreaElement が 含まれないため
+ let c = Array.slice(doc.getElementsByTagName("area"));
+ if (c.length > 0) Array.splice.apply(null, [b, b.length, 0].concat(c));
+
b.sort(function (a, b) a.compareDocumentPosition(b) & 0x2);
nodeList = b;
}

0 comments on commit 02637f7

Please sign in to comment.