Re: Error recovery spec

On Mon, Dec 17, 2012 at 10:51 PM, John Cowan <cowan@mercury.ccil.org> wrote:

>
> 3) Attempts to explicitly close the root element are ignored, leaving
> the matter to EOF processing.  This means that a second root element
> will be the final child of the first root element, and so on recursively.
>

Given

 <a/><b/><c/>

do you correct to

  <a><b/><c/></a>

or

 <a><b><c/></b></a>

?

This could replace #doc-insertion.


What do you do about

- text before any start-tag
- completely empty document

? I handle both these by wrapping them in <#doc>. But once one does that,
it seems very natural to handle the multiple top-level element case in a
similar way.

James

Received on Tuesday, 18 December 2012 08:29:54 UTC