From: SourceForge.net <no...@so...> - 2008-07-22 09:23:15
|
Bugs item #1898038, was opened at 2008-02-20 18:10 Message generated for change (Comment added) made by mguillem You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=952178&aid=1898038&group_id=195122 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: tag-balancer Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Body element should be added if missing Initial Comment: The following HTML document should be given an empty body element (I'm using square brackets instead of angled brackets, just to make sure it doesn't get mangled): [html] [head] [title]Test[/title] [/head] [/html] I believe a body element is already inserted correctly if there's trailing content between the end of the head section and the end of the html. However, the case where there is no content between the end of the head section and the end of the html is not being handled correctly. ---------------------------------------------------------------------- >Comment By: Marc Guillemot (mguillem) Date: 2008-07-22 11:23 Message: Logged In: YES user_id=402164 Originator: NO HTMLParser.addBodyToPageIfNecessary concerns HtmlUnit, not NekoHTML, and it is called! Nervertheless, this is correct, NekoHTML should add <head> and <body> automatically when missing. ---------------------------------------------------------------------- Comment By: Benjamin McCann (chengas123) Date: 2008-02-24 21:38 Message: Logged In: YES user_id=2018412 Originator: NO HTMLParser.addBodyToPageIfNecessary is a private method which is never called. It seems to me as if though it can simply be deleted. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=952178&aid=1898038&group_id=195122 |