[ https://issues.apache.org/jira/browse/TOBAGO-484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527005 ]
Marc Guillemot commented on TOBAGO-484: --------------------------------------- Just for info: you can tell HtmlUnit to ignore JS errors just like FF does. Nevertheless it's really better to fix them as you've done. > Tobago.registerCurrentScripts in standard tobago.js misses a null check > ----------------------------------------------------------------------- > > Key: TOBAGO-484 > URL: https://issues.apache.org/jira/browse/TOBAGO-484 > Project: MyFaces Tobago > Issue Type: Bug > Components: Core > Affects Versions: 1.0.11 > Reporter: Richard van Nieuwenhoven > Assignee: Volker Weber > Fix For: 1.0.12 > > > in the javascript function Tobago.registerCurrentScripts in standard/standard > tobago.js the if is missing a null check > -------------- > if (child.nodeType == 1 && child.tagName.toUpperCase() == "SCRIPT" ){ > ------------- > should be > -------------- > if (child.nodeType == 1 && child.tagName.toUpperCase() == "SCRIPT" && > child.src != null){ > ------------- > This very small bug prohibits using htmlunit as a testing framework because > it will stop processing javascript after this error, Firefox reports the > error but carries on. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.