W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2012

[Bug 20475] New: Grammar allows "- Infinity", but not "- 1"

From: <bugzilla@jessica.w3.org>
Date: Fri, 21 Dec 2012 14:31:46 +0000
To: public-script-coord@w3.org
Message-ID: <bug-20475-3890@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20475

            Bug ID: 20475
           Summary: Grammar allows "- Infinity", but not "- 1"
    Classification: Unclassified
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebIDL
          Assignee: cam@mcc.id.au
          Reporter: dom@w3.org
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-script-coord@w3.org

The current WebIDL grammar makes "-    Infinity" a valid float litteral, while
"- 1.0" is not:
FloatLiteral    →    float
 | "-" "Infinity"
 | "Infinity"
 | "NaN"

I see little value in allowing space between the "-" and "Infinity", so I would
suggest instead making the second production "-Infinity".

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Friday, 21 December 2012 14:31:48 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:08 UTC