W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > January to March 2002

RE: Using Form Elements for Pages only Intended for Printing

From: Jon Hanna <jon@spinsol.com>
Date: Fri, 11 Jan 2002 12:14:03 -0000
To: "Jim Ley" <jim@jibbering.com>, <w3c-wai-ig@w3.org>
Hash: SHA1

> I was considering the "replacement" portion of the result of
> document.write, not the requirement to be valid, no parsers replace
> <SCRIPT> with its result, they just add to the parse tree, is this
> defined in any standard?

"HTML documents are constrained to conform to the HTML DTD both
before and after processing any SCRIPT elements." -

After all, why would the standard allow invalid HTML to be produced,
even indirectly. (For one thing, some such scripts depend on the
object model being correct, which in turn depends on the HTML being
at least well-formed, if not fully valid).

It would be impossible for an HTML parser to test this completely,
since the HTML spec sets no restrictions on which scripting languages
may be used by <script> such a parser would need to have access to a
version of every script engine that could conceivably be used with an
HTML document. Even testing javascript only, would be difficult with
all but the simplest of scripts.

Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com>

Received on Friday, 11 January 2002 07:14:51 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 October 2015 16:21:16 UTC