Subj : Re: XML declaration broken going from Mozilla 1.8a6 to 1.8b To : Martin.Honnen From : Brendan Eich Date : Sat Mar 12 2005 09:49 am Martin Honnen wrote: > Maybe Brendan and/or Igor know better whether new XML() in E4X should be > able to consume the complete XML markup from a document including the > XML declaration. The specification's authors' intentions are not so clear, but as you note, the spec is: what SpiderMonkey does here is correct per ECMA-357. Note that if you make an E4X wrapper around an XML DOM document via var x = new XML(document); (a feature not yet implemented in SpiderMonkey and Gecko -- soon!), you shouldn't have any such problems. So it seems ECMA-357 wants you to be able to parse XML into a DOM and then wrap that with E4X glue, which allows the XML declaration pseudo-PI; or parse a JS string containing XML, which does not. I'll raise this issue with ECMA TG1. /be .