[whatwg] Inconsistent behavior for empty-string URLs

Ashley Sheridan ash at ashleysheridan.co.uk
Thu Mar 11 08:56:50 PST 2010


On Thu, 2010-03-11 at 17:53 +0100, Simon Pieters wrote:

> On Tue, 09 Mar 2010 01:40:31 +0100, Ian Hickson <ian at hixie.ch> wrote:
> 
> > On Fri, 18 Dec 2009, Simon Pieters wrote:
> >>
> >> I've now looked at a selection of random URLs.
> >>
> >> Conclusion: None of these seem to need a request to be made. img should
> >> fire an error event. iframe and frame should use about:blank.
> 
> Did you miss the part about the error event for <img src>? I don't see  
> anything in the spec that says error should be fired for that case.
> 


I would assume that the error is the same as that of a broken URL. A
valid image file cannot be found (as the URL is zero-length) so it
cannot display it.

Thanks,
Ash
http://www.ashleysheridan.co.uk


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100311/c2e62521/attachment.htm>


More information about the whatwg mailing list