From cd4f6d4a38b1b69d2629ee35bc1eab6876f73a9e Mon Sep 17 00:00:00 2001 From: "mrbkap%gmail.com" Date: Fri, 16 Dec 2005 23:02:22 +0000 Subject: [PATCH] bug 320008: Double-quotes in attributes in constructs parsed by the XML constructor get double-escaped, turning into " r=brendan --- js/src/jsscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/jsscan.c b/js/src/jsscan.c index 9043f6967a1d..dd21e8d85a40 100644 --- a/js/src/jsscan.c +++ b/js/src/jsscan.c @@ -1249,7 +1249,7 @@ js_GetToken(JSContext *cx, JSTokenStream *ts) * so escape " if it is expressed directly in a single-quoted * attribute value. */ - if (c == '"') { + if (c == '"' && !(ts->flags & TSF_XMLONLYMODE)) { JS_ASSERT(qc == '\''); js_AppendCString(&ts->tokenbuf, js_quot_entity_str); continue;