W3C home > Mailing lists > Public > public-html@w3.org > January 2009

Re: img issue: should we restrict the URI

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 13 Jan 2009 11:22:15 -0500
Message-ID: <496CBFB7.6000208@mit.edu>
To: Olivier GENDRIN <olivier.gendrin@gmail.com>
CC: HTML WG <public-html@w3.org>

Olivier GENDRIN wrote:
> If I understand you, you are saying that the alt should be preserved.
> But Ian talks about "ignore <img src="">", wich is not the same.

Ian just used a short way of saying things, which is somewhat imprecise.

If you look at the actual spec text with his change[1] is says:

     The src attribute's value is an ignored self-reference if its
     value is the empty string, and the base URI of the element is
     the same as the document's address.
     If the image was not fetched (e.g. because the UA's image support
     is disabled, or because the src  attribute's value is an ignored
     self-reference), or if the conditions in the previous paragraph
     are not met, then the image is not available.
     If the src attribute is set and the alt attribute is set to a
     value that isn't empty
     If the image is available and the user agent is configured to
     display that image, then the element represents the image
     specified by the src attribute.

     Otherwise, the element represents the text given by the alt
     attribute. User agents may provide the user with a notification
     that an image is present but has been omitted from the rendering.

Seems pretty clear to me.


[1] http://www.whatwg.org/specs/web-apps/current-work/#the-img-element
Received on Tuesday, 13 January 2009 16:23:07 UTC

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