mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 02:57:59 +01:00
Fix ]] when the relationship is specified with rel/rev (#162).
This commit is contained in:
@@ -1050,7 +1050,12 @@ function Buffer() //{{{
|
|||||||
|
|
||||||
function followFrame(frame)
|
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
|
// <link>s have higher priority than normal <a> hrefs
|
||||||
let elems = frame.document.getElementsByTagName("link");
|
let elems = frame.document.getElementsByTagName("link");
|
||||||
|
|||||||
Reference in New Issue
Block a user