W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2009

[whatwg] Inconsistent behavior for empty-string URLs

From: Jonas Sicking <jonas@sicking.cc>
Date: Wed, 9 Dec 2009 14:55:53 -0800
Message-ID: <63df84f0912091455y92b62bdl32328e0e08744802@mail.gmail.com>
On Wed, Dec 9, 2009 at 12:14 PM, Nicholas Zakas <nzakas at yahoo-inc.com> wrote:
> Just curious if anyone knows why <img src=""> is the exception in the
> spec, rather than having the same behavior for all elements that
> download resources on page load? As far as I can tell, the spec would
> currently allow self-referencing downloads for the following elements:
>
> * <iframe>
> * <embed>
> * <object>
> * <video>
> * <audio>
> * <source>

As stated. If the other browser vendors are ok with it, I'm ok with
making the empty string mean "don't load" in all these cases. I.e.
treat an empty src/href attribute the same way as an absence of the
attribute (except for <script> which still wouldn't treat it as an
inline script).

/ Jonas
Received on Wednesday, 9 December 2009 14:55:53 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:54 UTC