/[jscoverage]/trunk/js/jsxml.cpp
ViewVC logotype

Diff of /trunk/js/jsxml.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 332 by siliconforks, Thu Oct 23 19:03:33 2008 UTC revision 399 by siliconforks, Tue Dec 9 03:37:47 2008 UTC
# Line 1835  Line 1835 
1835      JSXMLArray nsarray;      JSXMLArray nsarray;
1836      uintN flags;      uintN flags;
1837    
1838      static const char prefix[] = "<parent xmlns='";      static const char prefix[] = "<parent xmlns=\"";
1839      static const char middle[] = "'>";      static const char middle[] = "\">";
1840      static const char suffix[] = "</parent>";      static const char suffix[] = "</parent>";
1841    
1842  #define constrlen(constr)   (sizeof(constr) - 1)  #define constrlen(constr)   (sizeof(constr) - 1)
# Line 1844  Line 1844 
1844      if (!js_GetDefaultXMLNamespace(cx, &nsval))      if (!js_GetDefaultXMLNamespace(cx, &nsval))
1845          return NULL;          return NULL;
1846      uri = GetURI(JSVAL_TO_OBJECT(nsval));      uri = GetURI(JSVAL_TO_OBJECT(nsval));
1847        uri = js_EscapeAttributeValue(cx, uri, JS_FALSE);
1848    
1849      urilen = JSSTRING_LENGTH(uri);      urilen = JSSTRING_LENGTH(uri);
1850      srclen = JSSTRING_LENGTH(src);      srclen = JSSTRING_LENGTH(src);
# Line 1880  Line 1881 
1881          op = (JSOp) *fp->regs->pc;          op = (JSOp) *fp->regs->pc;
1882          if (op == JSOP_TOXML || op == JSOP_TOXMLLIST) {          if (op == JSOP_TOXML || op == JSOP_TOXMLLIST) {
1883              filename = fp->script->filename;              filename = fp->script->filename;
1884              lineno = js_PCToLineNumber(cx, fp->script, fp->regs->pc);              lineno = js_FramePCToLineNumber(cx, fp);
1885              for (endp = srcp + srclen; srcp < endp; srcp++) {              for (endp = srcp + srclen; srcp < endp; srcp++) {
1886                  if (*srcp == '\n')                  if (*srcp == '\n')
1887                      --lineno;                      --lineno;

Legend:
Removed from v.332  
changed lines
  Added in v.399

  ViewVC Help
Powered by ViewVC 1.1.24