Nokogiri: add <tbody> after <table> elements as FireFox does

Posted by wefwgeweg on Stack Overflow See other posts from Stack Overflow or by wefwgeweg
Published on 2010-04-21T02:54:19Z Indexed on 2010/04/21 3:33 UTC
Read the original article Hit count: 279

Filed under:
|

i have a problem:

Firefox adds <tbody> whether it's there or not, after <table>. I have no problem with this. Nokogiri doesn't add it.

I need Nokogiri to emulate Firefox's behavior.

How can i add tbody after <table> elements to a given HTML page ? If tbody is already there, then move on to the next <table>....until all <tbody> tags are placed by Nokogiri.

Thank you.

© Stack Overflow or respective owner

Related posts about nokogiri

Related posts about firefox