W3C home > Mailing lists > Public > public-html@w3.org > January to March 2007

Re: Let every element have a src attribute

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 29 Mar 2007 15:25:01 +0200
To: "Dao Gottwald" <dao@design-noir.de>, public-html@w3.org
Message-ID: <op.tpycvzxg64w2qv@id-c0020>

On Wed, 28 Mar 2007 18:29:21 +0200, Dao Gottwald <dao@design-noir.de>  
wrote:
> .... which seems very plausible to me. Contrary to letting every element  
> have a href attribute, it's backwards-compatible by design.

Not really. <script src> has very different semantics from <img src>,  
<iframe src> and <embed src> for instance which have different semantics  
 from <video src>, <event-source src> and <source src> (which also all  
differ from each other). The semantics of an element are in general  
decided by the element and after that by their attributes. This means that  
how the attribute functions depends on the element and not the other way  
around.

Exactly the same arguments as for href="" apply I would say. For src=""  
you have can think about how loading would happen for the element. When  
are the various events dispatched? Does the element delay the load event  
of the document? Does it start loading the monment it is inserted? Does  
mutating the src="" attribute affect any API (see <event-source>)? Et  
cetera.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Thursday, 29 March 2007 13:25:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 29 March 2007 13:25:58 GMT