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

[whatwg] Inconsistent behavior for empty-string URLs

From: Nicholas Zakas <nzakas@yahoo-inc.com>
Date: Wed, 9 Dec 2009 12:14:00 -0800
Message-ID: <4E45EC6AD219FD47AD1BC06E4EE3845D0420D01E@SNV-EXVS09.ds.corp.yahoo.com>
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>

Can the self-reference <img> exception become the rule and apply to all
of these tags the same way?

-Nicholas
 
______________________________________________
Commander Lock: "Damnit Morpheus, not everyone believes what you
believe!"
Morpheus: "My beliefs do not require them to."

-----Original Message-----
From: whatwg-bounces@lists.whatwg.org
[mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Nicholas Zakas
Sent: Tuesday, December 08, 2009 9:43 AM
To: Simon Pieters; Aryeh Gregor
Cc: whatwg at lists.whatwg.org
Subject: Re: [whatwg] Inconsistent behavior for empty-string URLs

The change seems reasonable to me. It just seems that the same change
should be made in all cases that cause similar issues, making it the
rule of the spec instead of an exception for this one case. Does that
make sense?

-Nicholas
 
______________________________________________
Commander Lock: "Damnit Morpheus, not everyone believes what you
believe!"
Morpheus: "My beliefs do not require them to."

-----Original Message-----
From: Simon Pieters [mailto:simonp@opera.com] 
Sent: Tuesday, December 08, 2009 1:27 AM
To: Aryeh Gregor; Nicholas Zakas
Cc: whatwg at lists.whatwg.org
Subject: Re: [whatwg] Inconsistent behavior for empty-string URLs

On Mon, 07 Dec 2009 22:52:41 +0100, Aryeh Gregor  
<Simetrical+w3c at gmail.com> wrote:

> I don't know why <img src=""> has a special exception.  It would be
> possible to look through the svn log to see if there was a helpful
> commit message, or maybe someone will remember.

I seem to remember someone from Mozilla mentioned that they recently  
changed the behavior for img, so Hixie changed the spec for img.

-- 
Simon Pieters
Opera Software
Received on Wednesday, 9 December 2009 12:14:00 UTC

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