[whatwg] Inconsistent behavior for empty-string URLs

Nicholas Zakas nzakas at yahoo-inc.com
Tue Dec 15 16:11:57 PST 2009


Here's what I would propose:

1. Empty string attributes for HTML elements specifying resources to
automatically download are considered invalid and don't cause a request
to be sent. Examples: <img>, <link>, <script>, <iframe>, etc. This would
not apply to <a href=""> because it is a user-initiated request.

2. This also applies to manipulation of HTML elements through the DOM,
so (new Image()).src="" would not result in a request being sent.

3. This does not apply to JavaScript APIs that are unrelated to HTML
elements, such as Web Workers, XMLHttpRequest, etc.


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

-----Original Message-----
From: Jonas Sicking [mailto:jonas at sicking.cc] 
Sent: Tuesday, December 15, 2009 11:47 AM
To: Nicholas Zakas
Cc: Maciej Stachowiak; whatwg at lists.whatwg.org; Aryeh Gregor; Simon
Pieters
Subject: Re: [whatwg] Inconsistent behavior for empty-string URLs

On Tue, Dec 15, 2009 at 11:14 AM, Nicholas Zakas <nzakas at yahoo-inc.com>
wrote:
> Is it necessary to apply this within XSLT and CSS as well? Or is it
> possible to have this be an HTML-only feature? I'd be happy with the
> latter.

Nothing is required. But we do need a concrete proposal that everyone
agrees on.

/ Jonas


More information about the whatwg mailing list