[Htmlparser-user] Script tags bug
Brought to you by:
derrickoswald
From: <dha...@or...> - 2002-09-12 08:35:55
|
Hi, The following code : <SCRIPT Language="JavaScript"> <!-- function validateForm() { var i = 10 ; if(i < 5) i = i - 1 ; return true; } // --> gets converted to : <SCRIPT Language="JavaScript"> if(i < 5) i = i - 1 ; return true; } // --> </SCRIPT> We have analyzed that the problem is occurring because of the '<' character in the if statement. If the character is change to say '==' then the problem does not occur. I think some parsing logic will need to be corrected for data within <SCRIPT> tags. Also in many cases the ending script tag i.e. </SCRIPT> comes on the same line as the last tag i.e in this particluar case on the line of // -->. This will potentially cause </SCRIPT> to appear as a JavaScript comment. I think whatever be the condition </SCRIPT> should always be put on a new line. Regards, Dhaval Udani Senior Analyst M-Line, QPEG OrbiTech Solutions Ltd. +91-22-8290019 Extn. 1457 -----Original Message----- From: somik [mailto:so...@ya...] Sent: Wednesday, September 11, 2002 6:54 AM To: htmlparser-user Cc: somik Subject: Re: [Htmlparser-user] Anyone monitor this Hi Barry Which version are u using ? Do u have the latest integration release ? Regards, Somik ----- Original Message ----- From: "Barry Newman" <bar...@am...> To: <htm...@li...> Sent: Wednesday, September 11, 2002 2:30 AM Subject: [Htmlparser-user] Anyone monitor this > Don't know if anyone is monitoring this list, but I was wondering if anyone > had a patch for the problem where text before a comment tag is not parsed > correctly. I noticed on the sourceforge site that that bug was reported > and fixed and I am experiencing the same problem. Wondering if anyone has > the code to fix this? > > Thanks. > > > > > Barry Newman > Principal > > AMS > Bar...@AM... > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > Htmlparser-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlparser-user ------------------------------------------------------- In remembrance www.osdn.com/911/ _______________________________________________ Htmlparser-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlparser-user |