W3C home > Mailing lists > Public > public-html@w3.org > July 2008

Re: img issue: should we restrict the URI

From: Christian Schmidt <w3.org@chsc.dk>
Date: Wed, 30 Jul 2008 13:30:20 +0200
Message-ID: <489050CC.60108@chsc.dk>
To: HTML WG <public-html@w3.org>

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 

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.

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

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:34 UTC