From: Christian Dywan Date: Sat, 12 Mar 2011 02:38:26 +0000 (+0100) Subject: Check for 'rel' links should be case insensitive X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02d095cae0971d32c0cfcd1c7f32166db846bcda;p=midori Check for 'rel' links should be case insensitive --- diff --git a/midori/midori-view.c b/midori/midori-view.c index 035fe28f..665823d0 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -4955,7 +4955,7 @@ midori_view_get_previous_page (MidoriView* view) js_context = webkit_web_frame_get_global_context (web_frame); katze_assign (uri, sokoke_js_script_eval (js_context, "(function (l) { for (i in l) " - "if ((l[i].rel && l[i].rel == 'prev') " + "if ((l[i].rel && l[i].rel.toLowerCase () == 'prev') " " || (l[i].innerHTML" " && l[i].innerHTML.toLowerCase ().indexOf ('prev') != -1)) " "{ return l[i].href; } return 0; })(" @@ -4989,7 +4989,7 @@ midori_view_get_next_page (MidoriView* view) js_context = webkit_web_frame_get_global_context (web_frame); katze_assign (uri, sokoke_js_script_eval (js_context, "(function (l) { for (i in l) " - "if ((l[i].rel && l[i].rel == 'next') " + "if ((l[i].rel && l[i].rel.toLowerCase () == 'next') " " || (l[i].innerHTML" " && l[i].innerHTML.toLowerCase ().indexOf ('next') != -1)) " "{ return l[i].href; } return 0; })("