<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>have you tried <BR>
counter--<BR>
???<BR><BR><BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Troy&nbsp;III<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progressive&nbsp;art&nbsp;enterprise<BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR><BR><BR>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #008080 2px solid; MARGIN-RIGHT: 0px">
<HR id=EC_stopSpelling>
From: john@jwarner.com<BR>To: javascript@LaTech.edu<BR>Date: Sat, 29 Jul 2006 17:06:02 -0400<BR>Subject: [Javascript] Decrement operator, XHTML Strict 1.1 DTD, Internet Explorer 6?<BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
.ExternalClass P
{padding:0px;}
.ExternalClass
{font-size:10pt;font-family:Tahoma;}
</STYLE>

<DIV><FONT face="Comic Sans MS" color=#000080><SPAN class=EC_349145120-29072006>Target browser is IE 6 (Winders)</SPAN></FONT></DIV>
<DIV><FONT face="Comic Sans MS" color=#000080><SPAN class=EC_349145120-29072006>This is for my own education, how do you handle this? I was trying to use the XHTML 1.1 Strict DTD. With my script code in the document head, I have a function that has a line of code: </SPAN></FONT></DIV>
<DIV><FONT face="Comic Sans MS" color=#000080><SPAN class=EC_349145120-29072006>--counter&nbsp; //decrement counter </SPAN></FONT></DIV>
<DIV><FONT face="Comic Sans MS" color=#000080><SPAN class=EC_349145120-29072006>The code works this way just fine in IE. But when I went to the w3c validator it fails me due to this line within my script; calls it an improperly formed comment. OK, I think and proceed to enclose my script code within a CDATA block. W3C validator says OK, script blows up in IE - wait for it, guess where, on the CData opener and closer. So is it possible to use the decrement operator in a script with the Strict 1.1 dtd and IE 6? If so what have I missed and other then the obvious</SPAN></FONT></DIV>
<DIV><FONT face="Comic Sans MS" color=#000080><SPAN class=EC_349145120-29072006>counter = counter -1;</SPAN></FONT></DIV>
<DIV><FONT face="Comic Sans MS" color=#000080><SPAN class=EC_349145120-29072006>Is there a solution for this? Note telling me Firefox or Opera etc is useless the target is IE.</SPAN></FONT></DIV>
<DIV><FONT face="Comic Sans MS" color=#000080><SPAN class=EC_349145120-29072006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Comic Sans MS" color=#000080><SPAN class=EC_349145120-29072006>Thanks</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV align=left><FONT color=#000080>John Warner</FONT></DIV></BLOCKQUOTE><br /><hr />Be one of the first to try Windows Live Mail. <a href='http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d' target='_new'>Windows Live Mail.</a></body>
</html>