Closed dvorapa closed 10 years ago
A return statement in a while loop?
Did you mean:
if (node.specified) {
wrapper.setAttribute(node.nodeName, node.nodeValue));
}
Oh, sorry, I didn't realize the surrounding while loop. And yes, I meant something like if clause or the ? : pattern, the return is not possible
Concretely: On the line 362 throws JSHint the error "Expected an assignment or function call and instead saw an expression." I just tried to fix it, because the while loop should not contain only expressions, but it depends on the opinion.
Closed in favor of #149
So some small repair, but I haven't tested, if the function will do the same as before...