Re: making comma-wsp optional between points list coordinates

On Thu, Feb 5, 2015 at 5:25 PM, Cameron McCormack <cam@mcc.id.au> wrote:
> The grammar for the points="" attribute on <polygon> and <polyline> has
> a comma-wsp between each coordinate, which is white space, a comma, or
> both.  Firefox rejects a points list that has no spaces between
> coordinates (which is possible when the second number is negative).
> Chrome, Safari and IE all accept such a points list.
>
> I propose we don’t require the separator.  This would make points lists
> consistent with path data, where we already don’t require a separator.

Works for me.  An equivalent CSS grammar, like `<integer>+`, would
enable you to write "1-2-3" to mean something identical to "1 -2 -3",
so it's fine for SVG to do the same.

~TJ

Received on Thursday, 5 February 2015 12:36:15 UTC