Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not report empty TD nodes #49

Open
victor-homyakov opened this issue May 5, 2011 · 1 comment
Open

Do not report empty TD nodes #49

victor-homyakov opened this issue May 5, 2011 · 1 comment

Comments

@victor-homyakov
Copy link
Contributor

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

@victor-homyakov
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant