Anne van Kesteren wrote: > <foo> > <bar/> > <bar/> > </foo> > > How can <foo>.innerHTML be well-formed here? It could be if it were treated as an external parsed entity. http://www.w3.org/TR/REC-xml/#NT-extParsedEnt -- Lachlan Hunt http://lachy.id.au/