Subj : Re: Different handling of XML literals in Spidermonkey and Rhino To : netscape.public.mozilla.jseng From : Brendan Eich Date : Sun Mar 27 2005 11:43 am Brendan Eich wrote: > Martin Honnen wrote: > >> However, I am not sure how the default for >> XML.ignoreComments/ignoreProcessingInstructions come into play here >> and what is really supposed to happen. > > > XML.ignore{Comments,ProcessingInstructions} affect only 10.3.2 "ToXML > Applied to a W3C XML Information Item", but that section's algorithm is > invoked by 10.3.1 "ToXML Applied to the String Type", step 4. So it > looks like SpiderMonkey is failing to respect these flags here. I'll > fix ASAP. So the bug bites only top-level PIs and comments: js> x = js> y = hi there hithere js> y.toXMLString() hi there js> z = js> w = hi there hithere js> w.toXMLString() hi there So we'll want tests for both cases in the suite -- Bob is on the case. I'll fix straight away. /be .