Re: Error in SVG EBNF

On Tue, 18 May 2021 at 10:39, Bill Foote <billf@jovial.com> wrote:

> The ENBF at https://www.w3.org/TR/2018/CR-SVG2-20181004/paths.html#PathDataBNF says:
>
>     coordinate::= sign? number
>
>     sign::= "+"|"-"
>     number ::= ([0-9])+
>
> This, of course, makes floating-point numbers illegal.  Surely that's
> unintentional?  One assumes that scientific notation was meant to be
> permitted, as well.
>
> Floating point number syntax is extensively documented in the SVG 1.1
document:

https://www.w3.org/TR/SVG11/paths.html#PathDataBNF

A change disallowing floating point numbers from SVG 1.1 to SVG 2 is not
noted in the list of changes:

https://svgwg.org/svg-next/changes.html#paths

So it rather looks like an omission.

I couldn't find this on the bug list:

https://github.com/w3c/svgwg/issues?q=is%3Aissue+is%3Aopen+floating

It might be worth reporting there too.

Received on Tuesday, 18 May 2021 10:35:18 UTC