ISSUE-2368: Problems with grammars for numbers

Cyril

Problems with grammars for numbers

State:
CLOSED
Product:
SVG 1.1 F2 Last Call
Raised by:
Cyril Concolato
Opened on:
2010-09-06
Description:
The grammar for path data uses the following grammar:
[[
floating-point-constant:
fractional-constant exponent?
| digit-sequence exponent
]]
It seems that if no fractional-constant is used (no '.') an exponent component is required.

The same problem is present in the grammar for points in polygons and polylines, because the grammar is duplicated.

Then, the <number> datatype is not aligned with the number token in path (or polygons, polylines). For example, "10." is aligned in a path but not in <number>.

Finally, there should be tests in the test suite with:
- a number with no digit after and before a "."
- a number no digit after exponent
Related Actions Items:
Related emails:
  1. Re: ISSUE-2368: Problems with grammars for numbers (from cam@mcc.id.au on 2011-03-08)
  2. Re: ISSUE-2368: Problems with grammars for numbers (from cyril.concolato@telecom-paristech.fr on 2011-03-07)
  3. last call comment ISSUE-2368 (from cam@mcc.id.au on 2011-03-07)
  4. Re: {minutes} 9 December 2010 SVG WG telcon (from chris@w3.org on 2010-12-10)
  5. ISSUE-2368: Problems with grammars for numbers (from cam@mcc.id.au on 2010-12-07)
  6. ISSUE-2393: Tests needed for all forms of numbers in path/points data [Test Suite - SVG Core 2.0] (from sysbot+tracker@w3.org on 2010-12-06)
  7. SVG WG Minutes December 2, 2010 (from patd@microsoft.com on 2010-12-02)
  8. status update (from cam@mcc.id.au on 2010-11-25)
  9. Agenda Nov 18 2010 SVG WG telcon (from ed@opera.com on 2010-11-17)
  10. Minutes, 14 Sept 2010 SVG WG telcon (from chris@w3.org on 2010-09-14)
  11. Minutes Paris F2F day 2 (September 6, 2010) (from jwatt@jwatt.org on 2010-09-06)
  12. ISSUE-2368 (Cyril): Problems with grammars for numbers [SVG 1.1 F2 Last Call] (from sysbot+tracker@w3.org on 2010-09-06)

Related notes:

No additional notes.

Display change log ATOM feed


Dirk Schulze <dschulze@adobe.com>, Chair, Chris Lilley <chris@w3.org>, Staff Contact
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: 2368.html,v 1.1 2020/01/17 13:21:30 carcone Exp $