W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2011

Re: bug in example in step 6 of media type algorithm in WD-widgets-20110322 ?

From: Marcos Caceres <marcosscaceres@gmail.com>
Date: Wed, 4 May 2011 19:53:21 +0200
To: Jonathan Rees <jar@creativecommons.org>
Cc: public-webapps <public-webapps@w3.org>
Message-ID: <8C8033C363F14847B5AC36F4D029E15F@gmail.com>
(forgot to cc the list!)
On Wednesday, May 4, 2011 at 7:41 PM, Marcos Caceres wrote: 
> http://www.w3.org/TR/2011/WD-widgets-20110322/#rule-for-identifying-the-media-type-of-a0
> > says:
> > 
> > <says>
> > If the first character of the name is not a U+002E 'FULL STOP'
> > character, but name contains one or more U+002E 'FULL STOP'
> > characters, then let extension be the sequence of characters from the
> > last U+002E 'FULL STOP' (inclusive) to the end of name (if any).
> > 
> > The value of extension for the file name "cat.html" would be ".html".
> > The value of extension for "...html" would be ".html". And the value
> > of extension for "hello." would be an empty string.
> > </says>
> > 
> > Wouldn't the value of extension for "hello." be "." according to this rule?
> > 
> > "If any" doesn't make sense - there has to be *some* sequence of
> > characters from the full stop to the end.
> > 
> > Best
> > Jonathan
> 
> The spec now reads:
> [[
> If the first character or last character of the name is not a U+002E 
> 'FULL STOP' character, but name contains one or more U+002E 'FULL STOP' 
> characters, then let extension be the sequence of characters from the 
> last U+002E 'FULL STOP' (inclusive) to the end of name.
> ]]
> 
> That should address the issue above.
> 
Received on Wednesday, 4 May 2011 17:53:53 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:45 GMT