Fixes more
This commit is contained in:
parent
14eb352ec5
commit
ab5bc95df3
|
@ -57,21 +57,13 @@ var sourceVisible = localStorage.getItem('source-visible') === 'true';
|
||||||
if (node.innerText === 'Back to top') {
|
if (node.innerText === 'Back to top') {
|
||||||
var x = 0;
|
var x = 0;
|
||||||
}
|
}
|
||||||
if (node.children.length > 0) {
|
|
||||||
// For <li><p>...</p></li>, processes it as block.
|
if (processContainer(node) <= 1) {
|
||||||
if (processContainer(node) <= 1) {
|
if (processBlock(node)) {
|
||||||
if (processBlock(node)) {
|
i++;
|
||||||
i++;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
count++;
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (node.tagName === 'A' && node.classList.contains('to-top')) {
|
count++;
|
||||||
if (processBlock(node)) {
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -93,7 +85,7 @@ var sourceVisible = localStorage.getItem('source-visible') === 'true';
|
||||||
|
|
||||||
if (sibling) {
|
if (sibling) {
|
||||||
if (sibling.tagName === 'LI') {
|
if (sibling.tagName === 'LI') {
|
||||||
processBlock(sibling);
|
processContainer(sibling);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isClonedNode(current, sibling)) {
|
if (isClonedNode(current, sibling)) {
|
||||||
|
|
Loading…
Reference in New Issue