Re: ABNF or code fragments?

On Wed, 24 Feb 2010 09:56:09 +0100, Yves Lafon <ylafon@w3.org> wrote:

> On Tue, 23 Feb 2010, Philip Jägenstedt wrote:
>
>>> in the foot if they want, but http://www.example.com/foo#%74=1 is just  
>>> _not_ a media fragment URI.
>>
>> It's not *valid* (IIRC, "unnecessary" percent escaping is invalid per  
>> the URI spec) but the current processing rules will handle this case as  
>> percent
>
> Pointer?

Nope, I do not recall correctly, I can't find any such statement in URI or  
IRI.

We can decide for ourselves what is valid. I think it should be invalid to  
use percent encoding where it isn't needed, so that validators will warn  
against using #%74=1 and other stupid things. (But it would still work in  
conforming implementations.)

Percent decoding of name is performed in 3.c of the "parse a name-value  
component" definition:

http://www.w3.org/2008/WebVideo/Fragments/WD-media-fragments-spec/#processing-name-value-components

We could change this to only decode the value, but that would be worse in  
my opinion because it both differs from how query strings are processed by  
web servers and doesn't prevent people from using #t=%31.

-- 
Philip Jägenstedt
Core Developer
Opera Software

Received on Wednesday, 24 February 2010 09:36:17 UTC