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: Jim Ley <jim@jibbering.com>
Date: Fri, 11 Jan 2002 16:01:57 -0000
Message-ID: <010201c19ab9$50973a80$ca969dc3@emedia.co.uk>
To: <w3c-wai-ig@w3.org>
"Jon Hanna"
> > 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>')".

Which it does, you then suggest that the script element should disappear
(or are there other definitions of replace?)

> 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.

Can you point me to the standard which says do this, no current
implementations do that, and it makes the DOM standard incompatible with
the standard your supposing exists (as you'd have no point for a script
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.

Yep, you could code it in DOM, but the DOM is the result of parsing the
source, the source has a SCRIPT element in it, where's it gone?

Jim.

(Can you also please post 1 message to the list only.)
Received on Friday, 11 January 2002 11:03:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:14:00 GMT