Re: Using Form Elements for Pages only Intended for Printing

"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 UTC