Safer hr selecting.
This commit is contained in:
parent
a2e87f1200
commit
3244c0f696
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user