W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2007

[whatwg] IE/Win treats backslashes in path as forward slashes

From: Kornel Lesinski <kornel@osiolki.net>
Date: Wed, 11 Apr 2007 22:27:48 +0100
Message-ID: <op.tqm1wmb44suneb@g5.local>
On Wed, 11 Apr 2007 14:02:39 +0100, Geoffrey Sneddon  
<foolistbar at googlemail.com> wrote:

> Looking through the spec again, there is nothing about backslashes in  
> URI's path being treated as a forward slash, behaviour needed for  
> compatibility for quite a few websites.

I think it can be added.

RFC 1738 calls backslash "unsafe" (RFC 2396 "unwise") character and says  
it must be encoded, so this change won't affect any valid URLs/URIs.

I've tested how browsers handle path in <img> tag:
IE6, Opera 9.2, Safari 2 translate "\" to "/". Camino (Gecko 1.8) and iCab  
3 translate it to "%5C".
All browsers leave "%5C" alone, meaning that this change won't stop anyone  
 from accessing resources that really contain backslash in the path (tested  
Apache2 on OS X 10.4).

-- 
regards, Kornel Lesi?ski
Received on Wednesday, 11 April 2007 14:27:48 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:54 UTC