Tidy does not parse the tbody element in html tables as in this example:
nothing is done with the tbody element
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:
That's what I would expect to get, could you provide a test case?
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.
Just tested with jTidys java-5 branch:
and got the following result:
<html> <head> <meta content="HTML Tidy for Java (vers. 2009-08-01), see jtidy.sourceforge.net" name="generator">That's what I would expect to get, could you provide a test case?
Ugh, there was SO much spam. I removed those comments and blocked anonymous posts. Sorry if that negatively affects any non-spammer.