|
|
@@ -555,7 +555,7 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
|
|
|
|
|
|
function removeUnmarkedElements(element) {
|
|
|
let selectedElementFound = false;
|
|
|
- Array.from(element.childNodes, node => {
|
|
|
+ Array.from(element.childNodes).forEach(node => {
|
|
|
if (node.nodeType == 1) {
|
|
|
const isSelectedElement = node.getAttribute(SELECTED_CONTENT_ATTRIBUTE_NAME) == "";
|
|
|
selectedElementFound = selectedElementFound || isSelectedElement;
|