W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2004

[Bug 873] New: XML validation of javascript decrement variable by 1 using --

From: <bugzilla@wiggum.w3.org>
Date: Tue, 07 Sep 2004 12:03:09 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1C4egn-0008MQ-Di@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=873

           Summary: XML validation of javascript decrement variable by 1
                    using --
           Product: Validator
           Version: 0.7.0
          Platform: Other
               URL: http://e-cycling.szm.sk
        OS/Version: other
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: Parser
        AssignedTo: link@pobox.com
        ReportedBy: michal.szalai@pobox.sk
         QAContact: www-validator-cvs@w3.org


Hi. I wanted to use on my page:

<script type="text/javascript">
<!--
    var index = 10;
    index--;
//-->
</script>

>From SGML parser I got this error on line where index-- is:
invalid comment declaration: found character ";" outside comment but inside 
comment declaration

Of course I can use index=index-1; or index-=1; but I like to use index--;



------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
Received on Tuesday, 7 September 2004 12:03:09 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:07 UTC