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 15:41:03 -0000
To: "WAI Interest Group" <w3c-wai-ig@w3.org>
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/>.

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

Received on Friday, 11 January 2002 10:41:49 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:36:06 UTC