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

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