From: SourceForge.net <no...@so...> - 2011-07-11 01:18:19
|
Bugs item #3349163, was opened at 2011-07-02 04:02 Message generated for change (Comment added) made by aditsu You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=113153&aid=3349163&group_id=13153 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: DOM Support Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Aaron Herstein (aarongh2012) Assigned to: Nobody/Anonymous (nobody) Summary: problem parsing tbody Initial Comment: Tidy does not parse the tbody element in html tables as in this example: <table border="1"> <tbody> <tr> <td>January</td> <td>$100</td> </tr> <tr> <td>February</td> <td>$80</td> </tr> </tbody> </table> nothing is done with the tbody element ---------------------------------------------------------------------- >Comment By: Adrian Sandor (aditsu) Date: 2011-07-11 09:18 Message: Ugh, there was SO much spam. I removed those comments and blocked anonymous posts. Sorry if that negatively affects any non-spammer. ---------------------------------------------------------------------- Comment By: Martin (martinkurz) Date: 2011-07-10 21:18 Message: Just tested with jTidys java-5 branch: String source = "<table border=\"1\"><tbody><tr><td>January</td><td>$100</td></tr><tr><td>February</td><td>$80</td></tr></tbody></table>"; Tidy tidy = new Tidy(); Writer stringWriter = new StringWriter(); tidy.parse(new ByteArrayInputStream(source.getBytes("UTF-8")), stringWriter); System.out.println(stringWriter.toString()); and got the following result: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <meta content= "HTML Tidy for Java (vers. 2009-08-01), see jtidy.sourceforge.net" name="generator"> <title></title> </head> <body> <table border="1"> <tbody> <tr> <td>January</td> <td>$100</td> </tr> <tr> <td>February</td> <td>$80</td> </tr> </tbody> </table> </body> </html> That's what I would expect to get, could you provide a test case? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=113153&aid=3349163&group_id=13153 |