dom-monster
dom-monster copied to clipboard
Do not report empty TD nodes
DOM Monster is suggesting to remove empty <td></td>
nodes (tables sometimes can have empty cells). How is this possible?
I would like to change code like this (of course, this needs testing):
if (nodes[i].childNodes.length==0 && !((/^(?:link|br|script|meta|img|a|input|hr|param|iframe|area|base|td)$/).test(tag)) && !((nodes[i].id||'') == '_firebugConsole')) {
if(JR._console) console.warn('Empty node', nodes[i]);
empty++;
}