W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2013

[whatwg] Base URL’s effect on an empty @src element

From: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
Date: Wed, 1 May 2013 18:23:18 +0200
To: whatwg@lists.whatwg.org
Message-ID: <20130501182318416656.7e0777d4@xn--mlform-iua.no>
Given a document, where 

 1. the content of img @src is empty, and thus invalid, 
 2. but there is base url which points to an image
 
 Example:
  <!DOCUMENT html>
  <base href="image.jpg"/>
  <img src="" alt="Text." />

  Live DOM Viewer test:
  http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2236
   
Current UA behaviors:
 x) Firefox is the only one to render it the image 'image.jpg'.
 y) Webkit/Blink, IE10 and Opera12 render it as the alt text.

Questions:
 A) Which of x) and y) is correct?
 B) If the correct behavior is already defined in a spec,
    where is it defined?

Leif Halvard Silli
Received on Wednesday, 1 May 2013 16:23:44 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:58 UTC