mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 12:22:31 +02:00
Fix ]] when the relationship is specified with rel/rev (#162).
This commit is contained in:
1 parent
0aea143325
commit
71a0f56db4
1 file changed
+6
-1
@@ -1050,7 +1050,12 @@ function Buffer() //{{{
|
||||
|
||||
function followFrame(frame)
|
||||
{
|
||||
function iter(elems) (e for ([i, e] in Iterator(elems)) if (e.rel.toLowerCase() == rel || e.rev.toLowerCase() == rel));
|
||||
function iter(elems)
|
||||
{
|
||||
for (let i = 0; i < elems.length; i++)
|
||||
if (elems[i].rel.toLowerCase() == rel || elems[i].rev.toLowerCase() == rel)
|
||||
yield elems[i];
|
||||
}
|
||||
|
||||
// <link>s have higher priority than normal <a> hrefs
|
||||
let elems = frame.document.getElementsByTagName("link");
|
||||
|
||||
Reference in new issue
Block a user