XML well-formedness error should throw an exception in innerHTML