When using jQuery's getScript() function I get a "not well-formed" error on a line with comments

Posted by codeninja on Stack Overflow See other posts from Stack Overflow or by codeninja
Published on 2010-03-16T23:12:26Z Indexed on 2010/03/16 23:51 UTC
Read the original article Hit count: 325

Filed under:
|
|

My guess is that the src file needs to be XML-friendly, but of course none of the JS file is since it's using all sorts of non-XML compliant entities.

getScript() may be expecting an XML file =/

Any thoughts?

    if(is_def(pObj)){
      $.getScript(pObj.src,function(){
            pObj.stat = STATUS_OK;
            $a.dequeue(pObj);         
      });

    }

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about getscript