From: SourceForge.net <no...@so...> - 2010-09-13 13:02:05
|
The following forum message was posted by ernitingoel at http://sourceforge.net/projects/jtidy/forums/forum/41436/topic/830694: Could you please send me the source code at ern...@ho...? |
From: SourceForge.net <no...@so...> - 2010-09-14 07:47:29
|
The following forum message was posted by aditsu at http://sourceforge.net/projects/jtidy/forums/forum/41436/topic/830694: Do you realize that post was from 2003? |
From: SourceForge.net <no...@so...> - 2010-09-14 08:16:35
|
The following forum message was posted by ernitingoel at http://sourceforge.net/projects/jtidy/forums/forum/41436/topic/830694: Oops, I didn't realize it was from 2003 .... Thanks for pointing it out ... I am new to JTidy and trying to get the HTML error, the error file it is generating is giving me only 6 errors even though it's says 18 errors in the HTML source code supplied. I thought I may be wrong some where in the JTidy configuration. |
From: SourceForge.net <no...@so...> - 2010-09-14 08:45:57
|
The following forum message was posted by aditsu at http://sourceforge.net/projects/jtidy/forums/forum/41436/topic/830694: Can you provide the source html, the program code and the results? Use a pastebin, or create a bug report and add attachments. Also, what jtidy version are you using? |
From: SourceForge.net <no...@so...> - 2010-09-14 12:53:55
|
The following forum message was posted by ernitingoel at http://sourceforge.net/projects/jtidy/forums/forum/41436/topic/830694: I am sorry, I cannot provide you the source html however I can provide you the program code and the results. [b][u]Program Code[/u][/b] Tidy tidy = new Tidy(); tidy.setShowWarnings(true); tidy.setOnlyErrors(true); tidy.setXHTML(true); tidy.setXmlOut(true); tidy.setXmlTags(true); tidy.setRepeatedAttributes(1); tidy.setErrout(new PrintWriter(new FileWriter("error.txt"), true)); tidy.setForceOutput(false); String dom = getFileContent("html_file.html"); StringReader reader = new StringReader(dom); Document document = tidy.parseDOM(reader, null); [b][u]Results[/u][/b] line 152 column 53 - Warning: Warning: unescaped & which should be written as & line 152 column 54 - Warning: Warning: unescaped & which should be written as & line 152 column 130 - Warning: Warning: unescaped & which should be written as & line 152 column 131 - Warning: Warning: unescaped & which should be written as & line 195 column 1 - Error: unexpected </head> in <link> line 241 column -3 - Error: unexpected </html> in <link> line 246 column 5 - Error: unexpected </div> in <link> line 294 column 13 - Error: unexpected </div> in <p> line 320 column -3 - Error: unexpected </div> in <p> line 321 column 9 - Error: unexpected </div> in <p> 4 warnings, 18 errors were found! This document has errors that must be fixed before using HTML Tidy to generate a tidied up version. |
From: SourceForge.net <no...@so...> - 2010-09-14 12:57:26
|
The following forum message was posted by ernitingoel at http://sourceforge.net/projects/jtidy/forums/forum/41436/topic/830694: I am using version 938. |
From: SourceForge.net <no...@so...> - 2010-09-14 12:58:01
|
The following forum message was posted by aditsu at http://sourceforge.net/projects/jtidy/forums/forum/41436/topic/830694: You didn't mention the jtidy version. If the html is confidential, then can you replace the pieces of text with dummy stuff? Or can you come up with a smaller html that shows similar problems? |
From: SourceForge.net <no...@so...> - 2010-09-14 12:58:48
|
The following forum message was posted by aditsu at http://sourceforge.net/projects/jtidy/forums/forum/41436/topic/830694: Oh ok, I didn't see your last comment when I was writing mine. |
From: SourceForge.net <no...@so...> - 2010-09-14 13:46:51
|
The following forum message was posted by ernitingoel at http://sourceforge.net/projects/jtidy/forums/forum/41436/topic/830694: Thanks for your quick reply. I have pasted the HTML Source code at http://pastebin.ca/1940541 |
From: SourceForge.net <no...@so...> - 2010-09-14 16:37:10
|
The following forum message was posted by aditsu at http://sourceforge.net/projects/jtidy/forums/forum/41436/topic/830694: Ok, I can see what's going on now. I get this output with that file: line 29 column 17 - Warning: <link> attribute with missing trailing quote mark line 39 column 1 - Error: unexpected </head> in <link> line 70 column -3 - Error: unexpected </html> in <link> line 72 column 5 - Error: unexpected </div> in <link> line 98 column 13 - Error: unexpected </div> in <p> line 123 column -3 - Error: unexpected </div> in <p> line 124 column 9 - Error: unexpected </div> in <p> 1 warning, 18 errors were found! This document has errors that must be fixed before using HTML Tidy to generate a tidied up version. However, I get a similar output with Tidy (the C program). Since JTidy is a java port of Tidy, this should be reported as a Tidy bug. I think you can ignore the error count for now, and just focus on the actual errors. |
From: SourceForge.net <no...@so...> - 2010-09-15 09:26:29
|
The following forum message was posted by ernitingoel at http://sourceforge.net/projects/jtidy/forums/forum/41436/topic/830694: Thanks for your reply. Basically I am interested in getting all the errors. I have also filed a Tidy bug for that [url=https://sourceforge.net/tracker/?func=detail&aid=3066704&group_id=27659&ati d=390963]https://sourceforge.net/tracker/?func=detail&aid=3066704&group_id=27659 &atid=390963[/url] |
From: SourceForge.net <no...@so...> - 2010-09-20 07:14:04
|
The following forum message was posted by ernitingoel at http://sourceforge.net/projects/jtidy/forums/forum/41436/topic/830694: I have tried with the JTidy version 7 as well. There also I am getting the same error. Is it an old age bug in Tidy? |
From: SourceForge.net <no...@so...> - 2010-10-26 17:12:47
|
The following forum message was posted by aditsu at http://sourceforge.net/projects/jtidy/forums/forum/41436/topic/830694: Hmm, it looks like your paste has expired, do you still have the file? Could you attach it to a bug report? |