- From: Mark Lee <mlee@sivm.si.edu>
- Date: Wed, 23 Jan 2002 10:45:01 -0500
- To: <Laurent.Carcone@inrialpes.fr>, <www-amaya@w3.org>
Laurent; Thanks for your note. I am fairly new to Amaya and so was not aware that, as you and John Russell pointed out, Amaya did not yet support any scripting languages. I had dark inklings of suspicion, but that was all. The naturally arising questions are: Do you or anyone here know when or if scripting languages will be supported, and if so, which language? Again, thanks. - Mark Mark Lee Smithsonian Institution Electronic HelpDesk & Software Distribution System Webmaster mlee@sivm.si.edu ----- Original Message ----- From: "Laurent Carcone" <Laurent.Carcone@inrialpes.fr> To: <www-amaya@w3.org> Sent: Wednesday, January 23, 2002 9:28 AM Subject: Re: CDATA > Hello Mark > > In fact, there are two things. > First, the public Amaya releases until now (including Amaya 5.3) didn't treat > the CDATA tag and only its content was preserved and attached to the parent > element. The current CVS version of Amaya preserves this tag and its content > and creates a specific element in the document tree (for XML documents only). > The second thing is that script languages are not (yet) supported in Amaya, so > they are not executed. > > Regards > > Laurent Carcone > Amaya team > > > > My understanding is that the CDATA tag is to circumvent parser problems = > > with unescaped characters, like <, which are meant to operate in their = > > mathematical capacities rather than in their text capacities. > > > > The problem that I am experiencing is that in AMAYA 5.3 CDATA is acting = > > as a "bit bucket of oblivion" - the code that is enclosed is totally = > > ignored. The code is a simple JavaScript code which checks the level of = > > a user's browser. Below a certain level, a window appears informing the = > > user of the availability of an updated browser version. In order not to = > > make a nuisance of itself, the checking routine writes a simple cookie = > > to a user's computer which it later checks so as not to run again when = > > the page reloads. This cookie lasts only for the duration of the = > > browsing session. The code uses a > symbol in its mathematical sense, so = > > this routine needs to be 'masked' from an XML parser. The syntax that I = > > am using is this: > > <script type=3D"text/javascript" xml:space=3D"preserve" = > > language=3D"Javascript1.2"> > > <![CDATA[ > > . > > . the actual JavaScript code is = > > inserted here > > . > > ]]> > > </script> > > The code is not executing at all, and if I use comment markers, <!-- ... = > > -->, the result is identical. So, the questions are these: is my syntax = > > incorrect? -or- is this an implementation 'bug' in AMAYA -or- is this a = > > design 'bug' in the functioning of CDATA?=20 > > = > > - Mark > > Mark Lee > > Smithsonian Institution > > Electronic HelpDesk & Software Distribution System Webmaster > > mlee@sivm.si.edu > > > > > >
Received on Wednesday, 23 January 2002 12:40:03 UTC