Fix an unharmful issue, test if the class exists correctly.

This commit is contained in:
Nicolas Stepien 2011-11-28 23:28:22 +01:00
parent 8b0168c556
commit 2f8ae8755c
2 changed files with 2 additions and 2 deletions

View File

@ -2411,7 +2411,7 @@
root = q.parentNode.nodeName === 'FONT' ? q.parentNode : q.nextSibling ? q.nextSibling : q;
if (el = $.id(id)) {
inline = quoteInline.table(id, el.innerHTML);
if (q.className === 'backlink') {
if (/\bbacklink\b/.test(q.className)) {
$.after(q.parentNode, inline);
return;
}

View File

@ -1888,7 +1888,7 @@ quoteInline =
root = if q.parentNode.nodeName is 'FONT' then q.parentNode else if q.nextSibling then q.nextSibling else q
if el = $.id id
inline = quoteInline.table id, el.innerHTML
if q.className is 'backlink'
if /\bbacklink\b/.test q.className
$.after q.parentNode, inline
return
$.after root, inline