Fix an unharmful issue, test if the class exists correctly.
This commit is contained in:
parent
8b0168c556
commit
2f8ae8755c
@ -2411,7 +2411,7 @@
|
|||||||
root = q.parentNode.nodeName === 'FONT' ? q.parentNode : q.nextSibling ? q.nextSibling : q;
|
root = q.parentNode.nodeName === 'FONT' ? q.parentNode : q.nextSibling ? q.nextSibling : q;
|
||||||
if (el = $.id(id)) {
|
if (el = $.id(id)) {
|
||||||
inline = quoteInline.table(id, el.innerHTML);
|
inline = quoteInline.table(id, el.innerHTML);
|
||||||
if (q.className === 'backlink') {
|
if (/\bbacklink\b/.test(q.className)) {
|
||||||
$.after(q.parentNode, inline);
|
$.after(q.parentNode, inline);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1888,7 +1888,7 @@ quoteInline =
|
|||||||
root = if q.parentNode.nodeName is 'FONT' then q.parentNode else if q.nextSibling then q.nextSibling else q
|
root = if q.parentNode.nodeName is 'FONT' then q.parentNode else if q.nextSibling then q.nextSibling else q
|
||||||
if el = $.id id
|
if el = $.id id
|
||||||
inline = quoteInline.table id, el.innerHTML
|
inline = quoteInline.table id, el.innerHTML
|
||||||
if q.className is 'backlink'
|
if /\bbacklink\b/.test q.className
|
||||||
$.after q.parentNode, inline
|
$.after q.parentNode, inline
|
||||||
return
|
return
|
||||||
$.after root, inline
|
$.after root, inline
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user