From 3244c0f69678094f37296745548beaaa6b3d8ad6 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Fri, 26 Apr 2013 17:51:37 +0200 Subject: [PATCH] Safer hr selecting. --- src/Miscellaneous/PSAHiding.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Miscellaneous/PSAHiding.coffee b/src/Miscellaneous/PSAHiding.coffee index 4f43c25a8..9d740389d 100644 --- a/src/Miscellaneous/PSAHiding.coffee +++ b/src/Miscellaneous/PSAHiding.coffee @@ -58,7 +58,7 @@ PSAHiding = true else false - if hr = $.x 'following-sibling::hr', psa + if (hr = psa.nextElementSibling) and hr.nodeName is 'HR' hr.hidden = psa.hidden trim: (psa) -> psa.textContent.replace(/\W+/g, '').toLowerCase()