[ZPT] Re: [Roundup-users] why does tal not get interpretted inside <scr ipt> tags?

Dieter Maurer dieter at handshake.de
Tue Sep 7 13:38:25 EDT 2004


Chris Withers wrote at 2004-9-7 10:34 +0100:
>Marlon van den Berg wrote:
>> *old* browsers do parse the lines in-between <script> and </script>, but not
>> the lines between <!-- and -->. That is why the comment tags are often used
>> within script tags. Why not do it like that for TAL. That would allow users
>> to use TAL within script tags.

TAL tries to adhere to the SGML/XML specification
and "<!-- ... -->" is an SGML/XML comment.

Thus, TAL ignores anything between "<!--" and "-->" *provided* that
the "<!--...-->" occurs in markup sections -- this excludes CDATA
content elements such as "script" (in HTML).

-- 
Dieter


More information about the ZPT mailing list