RE: Using Form Elements for Pages only Intended for Printing

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> 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/AwUBPD7n1IFpv9f1Mr0YEQKT/ACgylFtGatWJaDbgjt8y6Y1pbPdcvEAn3fZ
Zhzsf8ielYVmSF1cIgsxO8Ef
=prHE
-----END PGP SIGNATURE-----

Received on Friday, 11 January 2002 08:40:08 UTC