- 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>
-----BEGIN PGP SIGNED MESSAGE----- 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." - http://www.w3.org/TR/html4/interact/scripts.html#h-18.2.4 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. -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com> iQA/AwUBPD7XCoFpv9f1Mr0YEQI2bQCfbFKaHyUM+nC7TtkQyK7501AKkigAoN7J 0DF7vIfctIqFLEwnx4DJfw2y =B4eg -----END PGP SIGNATURE-----
Received on Friday, 11 January 2002 07:14:51 UTC