dom-monster icon indicating copy to clipboard operation
dom-monster copied to clipboard

Do not report empty TD nodes

Open victor-homyakov opened this issue 13 years ago • 1 comments

DOM Monster is suggesting to remove empty <td></td> nodes (tables sometimes can have empty cells). How is this possible?

victor-homyakov avatar May 05 '11 16:05 victor-homyakov

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++;
  }

victor-homyakov avatar May 06 '11 06:05 victor-homyakov