Re: Error handling in URIs

Ian Hickson wrote:

> That's what HTML5 did until about a week ago. The problem is that doing so 
> leaves a number of behaviours undefined, as far as I can tell. For 
> example, what should following the link in this example do, in terms of 
> the actual URI passed to the networking layer?
> 
>    <!DOCTYPE HTML>
>    <title>Test</title>
>    <meta charset="ISO-8859-13">
>    <p><a href="results.cgi/&#x017d;?&#x017d;">Test</a>
> 

Well, I can't do UTF-8 calculations in my head, but assuming that 
Unicode character 0x017D encodes in three bytes which are AA, BB, and 
CC, then it should request this path:

results.cgi/%AA%BB%CC?%AA%BB%CC

The meta tag is *NOT* considered here.

-- 
Elliotte Rusty Harold  elharo@metalab.unc.edu
Refactoring HTML Just Published!
http://www.amazon.com/exec/obidos/ISBN=0321503635/ref=nosim/cafeaulaitA

Received on Friday, 27 June 2008 15:09:13 UTC