[whatwg] Inconsistent behavior for empty-string URLs
Nicholas Zakas
nzakas at yahoo-inc.com
Wed Dec 9 12:14:00 PST 2009
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 at 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 at 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
More information about the whatwg
mailing list