W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2003

comments problem

From: Lilian Salazar <liliansalazar@entelchile.net>
Date: Thu, 20 Feb 2003 11:41:36 -0300
Message-ID: <000d01c2d8ee$2c675220$0400005a@Supernova>
To: <html-tidy@w3.org>
original code:
<script language="JavaScript" type="text/javascript">
function MM_swapImage() { //v3.0    
var i,j=0,x,a=MM_swapImage.arguments;   
document.MM_sr=new Array; 
for(i=0;i<(a.length-2);i+=3)
  if ((x=MM_findObj(a[i]))!=null){
    document.MM_sr[j++]=x;
    if(!x.oSrc) x.oSrc=x.src; 
    x.src=a[i+2];} 
  }  
</script>

result:
            <script language="JavaScript" type="text/javascript">function MM_swapImage() {
                //v3.0     var i,j=0,x,a=MM_swapImage.arguments;
                document.MM_sr=new Array;
                for(i=0;i<(a.length-2);i+=3)   if
                ((x=MM_findObj(a[i]))!=null){     document.MM_sr[j++]=x;
                if(!x.oSrc) x.oSrc=x.src;      x.src=a[i+2];}    }
              </script>

configuration:
WrapScriptlets: false
WrapSection: true
WrapAttVals: false
LiteralAttribs: false
tabsize: 4
IndentAttributes: true
spaces: 2
wraplen: 68
IndentContent: false
SmartIndent: false
RawOut: false
QuoteMarks: false
QuoteNbsp: true
WrapAttVals: false
IndentAttributes: true
EncloseBodyText: false
EncloseBlockText: false
LiteralAttribs: false

what plus I add?

Thanks!!

Lilian

P.D.: Obvious if use /* v3.0 */ is no problem, but it is not the idea
Received on Thursday, 20 February 2003 09:41:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:53 GMT