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
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>
hi Eric

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

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

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

Received on Monday, 8 October 2012 22:27:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:56:48 UTC