Re: img issue: should we restrict the URI

I recently had a page that was supposed to add 1  to a value in a  
database every time the page loaded but I had a <img src="" alt="">  
that I forgot about, so every page load 2 was added to the db value :(

I went looking to see if there was anything in writing anywhere saying  
that's what was supposed to happen. Didn't find anything.



On Jul 30, at 7:30 AM, Christian Schmidt wrote:

> The empty string is considered a relative reference to the page  
> itself, but the same URL usually doesn't return both HTML and images  
> (it could do, depending on the Accept request header, but that would  
> be rather unusual).
>
> If the src is empty, it is usually an indication that the author  
> forgot to include an image, but the browser has to fetch the  
> resource again anyway.

Received on Tuesday, 26 August 2008 16:39:34 UTC