<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; color: rgb(68, 68, 68); ">Shouldn't this proposal take into account the CSS3 content property? (<a href="http://www.w3.org/TR/css3-content/" target="_blank" style="color: rgb(34, 34, 34); ">http://www.w3.org/TR/css3-content/</a>)<div>

<br></div><blockquote style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">

</blockquote><blockquote style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">

E.g., <span style="font-family: monospace; font-size: 12px; line-height: 21px; white-space: pre; ">figure[alt] { content: attr(href, url), attr(alt); }</span><br><blockquote style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">

</blockquote><br><blockquote style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">

</blockquote></blockquote>This was discussed not too long ago, starting in this thread: <br><span style="font-family: arial, helvetica, sans-serif; ">Adding a src attribute to all elements (<span style="font-family: arial; "><a href="http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-November/023955.html" target="_blank" style="color: rgb(34, 34, 34); ">http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-November/023955.html</a>)</span></span><div>

<br></div><div><span style="font-family: arial, helvetica, sans-serif; "><span style="font-family: arial; "></span></span>-Mike</div></span><br><div class="gmail_quote">On Tue, Dec 15, 2009 at 8:37 PM, Nicholas Zakas <span dir="ltr"><<a href="mailto:nzakas@yahoo-inc.com">nzakas@yahoo-inc.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Yes, that sounds right.<br>
<div class="im"><br>
-Nicholas<br>
<br>
______________________________________________<br>
Commander Lock: "Damnit Morpheus, not everyone believes what you<br>
believe!"<br>
Morpheus: "My beliefs do not require them to."<br>
<br>
-----Original Message-----<br>
From: Jonas Sicking [mailto:<a href="mailto:jonas@sicking.cc">jonas@sicking.cc</a>]<br>
</div><div class="im">Sent: Tuesday, December 15, 2009 5:22 PM<br>
To: Nicholas Zakas<br>
Cc: Maciej Stachowiak; <a href="mailto:whatwg@lists.whatwg.org">whatwg@lists.whatwg.org</a>; Aryeh Gregor; Simon<br>
Pieters<br>
Subject: Re: [whatwg] Inconsistent behavior for empty-string URLs<br>
<br>
</div><div><div></div><div class="h5">On Tue, Dec 15, 2009 at 4:11 PM, Nicholas Zakas <<a href="mailto:nzakas@yahoo-inc.com">nzakas@yahoo-inc.com</a>><br>
wrote:<br>
> Here's what I would propose:<br>
><br>
> 1. Empty string attributes for HTML elements specifying resources to<br>
> automatically download are considered invalid and don't cause a<br>
request<br>
> to be sent. Examples: <img>, <link>, <script>, <iframe>, etc. This<br>
would<br>
> not apply to <a href=""> because it is a user-initiated request.<br>
><br>
> 2. This also applies to manipulation of HTML elements through the DOM,<br>
> so (new Image()).src="" would not result in a request being sent.<br>
><br>
> 3. This does not apply to JavaScript APIs that are unrelated to HTML<br>
> elements, such as Web Workers, XMLHttpRequest, etc.<br>
<br>
I'd prefer to explicitly enumerate the elements we're talking about,<br>
rather than giving rules which risk being interpreted differently by<br>
different people.<br>
For example not all <link>s are automatically downloaded, such as<br>
<link rel=prev>. However I suspect that we'll want all <link>s to<br>
behave the same.<br>
<br>
So the specific list would then be:<br>
<br>
<img><br>
<link><br>
<script><br>
<iframe><br>
<video><br>
<audio><br>
<object><br>
<embed><br>
<source><br>
<input type=image><br>
<br>
<br>
All of these would never attempt to fetch a resource if the src/href<br>
attribute is empty (even if the current baseuri is different from the<br>
document uri). However it would not act as if the attribute was not<br>
set (important for <script>).<br>
<br>
Does that sound right?<br>
<br>
/ Jonas<br>
</div></div></blockquote></div><br>