W3C home > Mailing lists > Public > www-tag@w3.org > October 2012

Re: Precision and error handling (was URL work in HTML 5)

From: Edward O'Connor <eoconnor@apple.com>
Date: Mon, 08 Oct 2012 15:26:50 -0700
To: www-tag@w3.org
Cc:
Message-id: <m2d30s7g7p.fsf@eoconnor.apple.com>
Hi Eric,

You wrote:

> The idea of the HTML parser is that it always produces a DOM that can
> serialize out into a document conforming to the author spec.

No, that's not the idea at all. Consider the following document:

===============
<!doctype html>
<xmp>
hi Eric
===============

When parsed, it produces a DOM tree that looks like so:

#document
| <HTML>
|   <HEAD>
|   <BODY>
|     <XMP>
|       "hi Eric"

When serialized, the resulting document does not meet the author
conformance criteria in the spec.


Ted
Received on Monday, 8 October 2012 22:27:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 8 October 2012 22:27:19 GMT