[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    testcase for www.angryflower.com - problem with WebSideStory counter code
From:       Vadim Plessky <lucy-ples () mtu-net ! ru>
Date:       2001-12-11 11:42:17
[Download RAW message or body]

On Saturday 01 December 2001 08:46, Ivan E. Moore II wrote:
|   Package: khtml
|   Version: 2.2.2
|
|   (Originally submitted to the Debian BTS way back in August and I uhh...
|   umm...forgot to forward it off... by James Troup <james@nocrew.org> as
| Bug#108963)
|
|   Konqueror censors BTAF!!!  Err, or something.  In any event, I only
|   see the left hand table in Konqueror, not the main table on the right.
|   lynx, mozilla et. al. are okay and konqeuror use to work.
|

As I promised, I did testcase for http://www.angryflower.com/
There is no problem with site itself - it renders perfectly after you exclude 
WebSideStory counter code from that site's code (I did it in local copy of 
AngryFlower saved with MS IE)
There are 2 testcases attached.

run AngryFlower-JS-HitBox.html in Konq and Mozilla.

You will see  "This text should be visible" in Mozilla (just below Click 
Here! link), and you will not see this text in Konq (2.2.2).
Problem is caused by JS code between. Testcase fully illustrates problem with 
AngryFlower.com.
BTW: I guess problem can be related to parser module, not to JS, and to 
document.write combination(s). Most variables they use/request are defined in 
current KHTML implementation, at least I haven't see significant problems 
with code of other counters.
 
On a side note - I have seen same JS code on www.intel.com, and probably it's 
also present on many other sites. So IMO this bug really needs a fix, and fix 
should go to KDE 2_2 branch as well - as problem can affect thousands of 
sites.

-- 

Vadim Plessky
http://kde2.newmail.ru  (English)
33 Window Decorations and 6 Widget Styles for KDE
http://kde2.newmail.ru/kde_themes.html
KDE mini-Themes
http://kde2.newmail.ru/themes/

["AngryFlower-JS-HitBox.html" (text/html)]

<html>
<body>
<H1>WEBSIDESTORY JavaScript (counter) code follows</H1>
<p>you should see text "This text should be visible" below (after "Click here!" \
box</p> <P>
<!-- BEGIN WEBSIDESTORY CODE V5. COPYRIGHT 1998-2000 WEBSIDESTORY, INC. ALL RIGHTS \
RESERVED. U.S. PATENT PENDING. --><!-- webbot bot="HTMLMarkup" startspan --> <P>
<SCRIPT language=javascript> var test=0;</SCRIPT>

<SCRIPT language=javascript1.1 src="AngryFlower_com_files/js.com">
</SCRIPT>

<SCRIPT language=javascript>
if (test==0) { var dt=0, sv=10, \
ss="na",sc="na",ln="",pl="",rf="",bn="",ja="",bv=0,x1="",x2="",x3="",arg=""; \
rf=escape(document.referrer)+"";if((rf=="undefined")||(rf=="")){rf="bookmark";} \
bv=Math.round(parseFloat(navigator.appVersion)*100);bn=navigator.appName; \
if(bn!="Netscape"){dt=(new \
Date()).getHours();};if(bn.substring(0,9)=="Microsoft"){bn="MSIE";} \
if((bn=="MSIE")&&(parseInt(bv)==2)){bv=302;};ja="na"; x1="<a \
href='http://rd1.hitbox.com/rd?acct=WQ500623K9EA55EN0' target='_top'>"; x2="<img \
src='http://hg1.hitbox.com/HG?hc=w161&cd=1&hb=WQ500623K9EA55EN0&n=PUT+PAGE+NAME+HERE";
 x3="&cd=1&bt=2' border=0 height=62 width=88></a>";
arg="&bn="+bn+"&bv="+bv+"&ss="+ss+"&sc="+sc+"&dt="+dt+"&sv="+sv;
arg+="&ja="+ja+"&rf="+rf+"&ln="+ln+"&pl="+escape(pl);document.write(x1+x2+arg+x3);}</SCRIPT>


      <SCRIPT language=javascript1.2>document.write("<");document.write("!--  \
");</SCRIPT>  <NOSCRIPT><A href="http://rd1.hitbox.com/rd?acct=WQ500623K9EA55EN0"
      target=_top><IMG height=62 src="" width=88 border=0></A></NOSCRIPT>
      <SCRIPT language=javascript1.2> document.write("  \
                --");document.write(">");</SCRIPT>
       <BR><!-- webbot bot="HTMLMarkup" endspan --><!-- END WEBSIDESTORY CODE  -->
       </CENTER></P>
<H1>This text should be visible</H1>
</body>
</html>


["AngryFlower-JS-HitBox-2.html" (text/html)]

<html>
<body>
<H1>WEBSIDESTORY JavaScript (counter) code follows</H1>
<p>you should see text "This text should be visible" below (after "Click here!" \
box</p> <P>
<!-- BEGIN WEBSIDESTORY CODE V5. COPYRIGHT 1998-2000 WEBSIDESTORY, INC. ALL RIGHTS \
RESERVED. U.S. PATENT PENDING. --><!-- webbot bot="HTMLMarkup" startspan --> <P>
<SCRIPT language=javascript> var test=0;</SCRIPT>

<SCRIPT language=javascript>
if (test==0) { var dt=0, sv=10, \
ss="na",sc="na",ln="",pl="",rf="",bn="",ja="",bv=0,x1="",x2="",x3="",arg=""; \
rf=escape(document.referrer)+"";if((rf=="undefined")||(rf=="")){rf="bookmark";} \
bv=Math.round(parseFloat(navigator.appVersion)*100);bn=navigator.appName; \
if(bn!="Netscape"){dt=(new \
Date()).getHours();};if(bn.substring(0,9)=="Microsoft"){bn="MSIE";} \
if((bn=="MSIE")&&(parseInt(bv)==2)){bv=302;};ja="na"; x1="<a \
href='http://rd1.hitbox.com/rd?acct=WQ500623K9EA55EN0' target='_top'>"; x2="<img \
src='http://hg1.hitbox.com/HG?hc=w161&cd=1&hb=WQ500623K9EA55EN0&n=PUT+PAGE+NAME+HERE";
 x3="&cd=1&bt=2' border=0 height=62 width=88></a>";
arg="&bn="+bn+"&bv="+bv+"&ss="+ss+"&sc="+sc+"&dt="+dt+"&sv="+sv;
arg+="&ja="+ja+"&rf="+rf+"&ln="+ln+"&pl="+escape(pl);document.write(x1+x2+arg+x3);}</SCRIPT>


      <SCRIPT language=javascript1.2>document.write("<");document.write("!--  \
");</SCRIPT>  <NOSCRIPT><A href="http://rd1.hitbox.com/rd?acct=WQ500623K9EA55EN0"
      target=_top><IMG height=62 src="" width=88 border=0></A></NOSCRIPT>
      <SCRIPT language=javascript1.2> document.write("  \
                --");document.write(">");</SCRIPT>
       <BR><!-- webbot bot="HTMLMarkup" endspan --><!-- END WEBSIDESTORY CODE  -->
       </CENTER></P>
<H1>This text should be visible</H1>
</body>
</html>


["js.com" (text/plain)]

test=1;
dt=(new Date()).getHours();sv=10;ce="na";ss="na";sc="na";ln="";pl="";
rf=escape(document.referrer)+"";
if((rf=="undefined")||(rf=="")){rf="bookmark";};
bn=navigator.appName;if(bn.substring(0,9)=="Microsoft"){bn="MSIE";};
bv=Math.round(parseFloat(navigator.appVersion)*100);
if((bn=="MSIE")&&(parseInt(bv)==2))bv=301; ja="na";
if(navigator.appName=="Netscape") {
if(bv>=400) ln=navigator.language;
if(bv>300) for(var i=0;i<navigator.plugins.length;i++)
pl +=navigator.plugins[i].name+":" };
sv=11;ja=(navigator.javaEnabled()==true)?"y":"n";
document.write("<script language=javascript1.2>");
document.write("sv=12;ss=screen.width+'*'+screen.height;sc=(bn=='MSIE')?screen.colorDepth:screen.pixelDepth;if(sc=='undefined'){sc='na';}");
 document.write("</"+"script>");
document.write("<script language=javascript1.3>");
document.write("sv=13;");
document.write("</"+"script>");
arg="&bn="+bn+"&bv="+bv+"&ce="+ce+"&ss="+ss+"&sc="+sc+"&dt="+dt+"&sv="+sv;
arg+="&ja="+ja+"&rf="+rf+"&ln="+ln+"&pl="+escape(pl);
x1="<a href='http://rd1.hitbox.com/rd?acct=WQ500623K9EA55EN0' target='_top'>";
x2="<img src='http://hg1.hitbox.com/HG?hc=w161&hb=WQ500623K9EA55EN0&n=angryflower.com";
 x3="&cd=1&jf=7' border=0 height=62 width=88";
x4=" alt='Click Here!'></a>";
document.write(x1+x2+arg+x3+x4);



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic