- From: Jon Hanna <jon@spinsol.com>
- Date: Fri, 11 Jan 2002 15:41:03 -0000
- To: "WAI Interest Group" <w3c-wai-ig@w3.org>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 What I meant to say was: > You were suggesting that the correct behaviour of a conformant > parser in encountering this > > <script type="text/jim"> > print('<p></p>') > </script> > > is to produce just a P element in the resulting parse tree No, the correct response of the parser would be to produce a script element with the data "print('<p></p>')". The browser should then pass this to a script engine that matches the MIME type text/jim if available. Assuming that print in text/jim is bound to the write method of the document object then it is the job of the script engine to replace the script element with a p element. This is easily enough compatible with the DOM, as it can be viewed as operations on the script element that replace it with a p element. Global methods and variables in the script should be retained by the engine, in case it is called by the browser again on encountering another <script> or in response to an event. The rendering engine should then render the updated document with the new <p/>. -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com> iQA/AwUBPD8HjoFpv9f1Mr0YEQJfCACgwqj5TZS8i/CC7BHw/Z1ztwWSUrcAoK5x cGCE6u3tpJ+8n0wP9aPdUXIq =lr8X -----END PGP SIGNATURE-----
Received on Friday, 11 January 2002 10:41:49 UTC