|
|
@ -341,9 +341,9 @@ Readability.prototype = {
|
|
|
|
link.parentNode.replaceChild(text, link);
|
|
|
|
link.parentNode.replaceChild(text, link);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// if the link has multiple children, they should all be preserved
|
|
|
|
// if the link has multiple children, they should all be preserved
|
|
|
|
var container = this._doc.createElement('span')
|
|
|
|
var container = this._doc.createElement("span");
|
|
|
|
while (link.childNodes.length > 0) {
|
|
|
|
while (link.childNodes.length > 0) {
|
|
|
|
container.appendChild(link.childNodes[0])
|
|
|
|
container.appendChild(link.childNodes[0]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
link.parentNode.replaceChild(container, link);
|
|
|
|
link.parentNode.replaceChild(container, link);
|
|
|
|
}
|
|
|
|
}
|
|
|
|