W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2006

[whatwg] several messages about XML syntax and HTML5

From: Sam Ruby <rubys@intertwingly.net>
Date: Mon, 04 Dec 2006 10:00:52 -0500
Message-ID: <45743824.8060005@intertwingly.net>
James Graham wrote:
> Elliotte Harold wrote:
> 
>> That means I have to send text/html to browsers (because that's the 
>> only thing they understand) and let my clients ignore that hint.
> 
> No.
> 
> As I understand it, the full chain of events should look like this:
> 
>  [Internal data model in server]
>                 |
>                 |
>        HTML 5 Serializer
>                 |
>                 |
>             {Network}
>                 |
>                 |
>           HTML 5 Parser
>                 |
>                 |
>  [Whatever client tools you like]
> 
> The only technical issue is that your HTML5 parser has to produce a data 
> format that your other client tools like. If this involves the 
> construction of an XML-like tree that's fine. But you should _never_ try 
> to use an XML parser to produce the tree because it _will_ break with 
> conforming HTML5 documents.

Excellent ASCII art.

This only works if the internal-data-model to HTML5 conversion is 
lossless.  If it is not, people will find ways with structured comments 
or by creating intentionally invalid HTML5 and relying on the error 
recovery that is either prescribed or observed to be commonly practiced.

- Sam Ruby
Received on Monday, 4 December 2006 07:00:52 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:31 UTC