W3C home > Mailing lists > Public > public-csv-wg@w3.org > June 2015

Matching a column header with leading or trailing whitespace?

From: David Booth <david@dbooth.org>
Date: Wed, 10 Jun 2015 14:55:48 -0400
Message-ID: <55788834.40908@dbooth.org>
To: public-csv-wg@w3.org
In looking at
section 7.4.1 says "There are no constraints on these titles."
However, the grammar given in section 7.5 distinguishes between 'field' 
and 'rawfield', where a 'rawfield' does not start or end with 
whitespace.  This implicitly suggests -- but does not state -- that the 
name of a column header should not contain leading or trailing whitespace.

Should a column header "First Name " be considered a match of "First 
Name"?  For convenience -- and to avoid surprises -- I think it should, 
but I didn't see anything in the spec that explicitly answers this 
either way.  I don't see a good rationale for allowing a column name to 
differ by leading or trailing whitespace.

What do others think?  Has this already been discussed and decided?

David Booth
Received on Wednesday, 10 June 2015 18:56:17 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 10 June 2015 18:56:17 UTC