Commit 7868071c authored by Julien Cigar's avatar Julien Cigar
Browse files

remove class= attribute if class is empty

parent c3d6626e
......@@ -629,6 +629,10 @@
}
elem.className = new_cls.replace(/\s{2,}/g, ' ').trim();
if (elem.className.length == 0) {
elem.removeAttribute('class');
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment