This is what Blink and Gecko do, and is required for serialization (innerHTML etc.) of XML elements to work.