W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2008

Re: [widgets] Trimming attribute values, a bad idea?

From: Henri Sivonen <hsivonen@iki.fi>
Date: Wed, 3 Dec 2008 10:14:05 +0200
Cc: public-webapps <public-webapps@w3.org>
Message-Id: <E777B444-B26B-4EEC-8FCB-3A43AC1F5232@iki.fi>
To: Marcos Caceres <marcosscaceres@gmail.com>

On Dec 3, 2008, at 04:51, Marcos Caceres wrote:

> So, for instance, <access network="     false    "> is ok.
> Does anyone see any problem with this? Should I revert back to being
> strict and having UA do comparisons without trimming?

Experience with HTML, SVG and MathML indicates that when trimming is  
specified, implementors don't always do it. My conclusion is that it's  
better to specify that keyword attribute values are compared without  
trimming. (Unless, of course, the attribute in question takes a  
whitespace-separated list of tokens.)

Henri Sivonen
Received on Wednesday, 3 December 2008 08:14:47 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:13 UTC