Menu

#252 problem parsing tbody

open
nobody
5
2012-10-08
2011-07-01
No

Tidy does not parse the tbody element in html tables as in this example:

January $100
February $80

nothing is done with the tbody element

Discussion

  • Martin

    Martin - 2011-07-10

    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:

    <html> <head> <meta content="HTML Tidy for Java (vers. 2009-08-01), see jtidy.sourceforge.net" name="generator"> </head> <body>
    January $100
    February $80
    </body> </html>

    That's what I would expect to get, could you provide a test case?

     
  • aditsu

    aditsu - 2011-07-11

    Ugh, there was SO much spam. I removed those comments and blocked anonymous posts. Sorry if that negatively affects any non-spammer.

     

Log in to post a comment.