You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Volker Weber (JIRA)" <de...@myfaces.apache.org> on 2007/09/12 13:11:32 UTC

[jira] Resolved: (TOBAGO-484) Tobago.registerCurrentScripts in standard tobago.js misses a null check

     [ https://issues.apache.org/jira/browse/TOBAGO-484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Volker Weber resolved TOBAGO-484.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.12

child.src is checked by typeof:

 ... && typeof child.src == "string") {...

> 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.