Re: img issue: should we restrict the URI

Jeff Schiller wrote:
> My belief is that we should not restrict the URI or specify the format.

It may be an idea to disallow the URL consisting of the empty string, 
i.e. <img src="">.

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.


The same also applies to other included resources like stylesheets, 
JavaScript-includes etc.


Christian

Received on Wednesday, 30 July 2008 11:31:03 UTC