guard against unrecognized HTML attributes. closes #620

pull/1/head
ansuz 4 years ago
parent 737f0ebeee
commit 1ceb63804e

@ -685,7 +685,9 @@
}
if (objNode.attributes) {
Object.keys(objNode.attributes).forEach(function(attribute) {
try {
node.setAttribute(attribute, objNode.attributes[attribute]);
} catch (e) { console.debug(e); }
});
}
if (objNode.childNodes) {

Loading…
Cancel
Save