Re: img issue: should we restrict the URI

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.

-Boris

[1] http://www.whatwg.org/specs/web-apps/current-work/#the-img-element

Received on Tuesday, 13 January 2009 16:23:07 UTC