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

Leif Halvard Silli xn--mlform-iua at xn--mlform-iua.no
Wed May 1 09:23:18 PDT 2013

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
  <!DOCUMENT html>
  <base href="image.jpg"/>
  <img src="" alt="Text." />

  Live DOM Viewer test:
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.

 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

More information about the whatwg mailing list