From: SourceForge.net <no...@so...> - 2007-09-20 16:07:13
|
Bugs item #1798512, was opened at 2007-09-20 02:56 Message generated for change (Comment added) made by mattinger You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=1798512&group_id=47038 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: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Matt Inger (mattinger) Assigned to: Marc Guillemot (mguillem) Summary: Prototype.js and Firefox emulation Initial Comment: Seems that Prototype.js does not work with HtmlUnit when configuring the WebClient as a firefox browser. Seems that the "createRange" function used in prototype.js is not defined for firefox in htmlunit. As a result, a javascript exception is thrown. However, the javascript works perfectly fine in the firefox 2.0.x browser itself. I'm not sure if this an issue in the Mozilla javascript engine itself, or in htmlunit. As a side note, the "createRange" function works fine when configured as an Internet Explorer client. As another side note, nekohtml has some issues with some bad html, which forces page loads not to work properly. specifically, if you have an <html> tag within an <html> tag, it just stops parsing. I'm not sure if there's anything that can be done about this in htmlunit itself. Nekohtml specifically mentions this issue on their website, so i'm not sure that anything can be done about it. ---------------------------------------------------------------------- >Comment By: Matt Inger (mattinger) Date: 2007-09-20 16:07 Message: Logged In: YES user_id=83032 Originator: YES While, in general, I agree that applications should not produce this kind of bad html code, it does render in the browser. It would be a good think IMHO if htmlunit is able to properly parse and deal with any page which the browser itself can deal with. That being said, I do understand that the limitation lies with NekoHtml and not with htmlunit itself. ---------------------------------------------------------------------- Comment By: Marc Guillemot (mguillem) Date: 2007-09-20 06:27 Message: Logged In: YES user_id=402164 Originator: NO Can you try with latest source from head? Support for createRange has been added last week. Concerning this kind of bad html code, this is indeed more a NekoHtml issue. On the other side as HtmlUnit should help to produce good applications, I don't see it as very problematic that it doesn't accept this kind of bad html code. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=1798512&group_id=47038 |