W3C home > Mailing lists > Public > www-html@w3.org > February 2004

Re: Please remove the src and type attributes.

From: Toby A Inkster <tobyink@goddamn.co.uk>
Date: Tue, 10 Feb 2004 18:53:33 +0000
To: Orion Adrian <oadrian@hotmail.com>
Cc: www-html@w3.org
Message-ID: <20040210185333.GA13344@ophelia.goddamn.co.uk>
On Tue, Feb 10, 2004 at 01:10:20PM -0500, Orion Adrian wrote:
| <p src="holiday.png" type="image/png">
|     <span src="holiday.gif" type="image/gif">
|         An image of us on holiday.
|     </span>
| </p>
| This is equivalent to:
| <object data="holiday.png" type="image/png">
|     <object data="holiday.gif" type="image/gif">
|         An image of us on holiday.
|     </object>
| </object>

... but they're not equivalent. In the first example, "An image of us on
holiday." is a paragraph. In the second example, it's an unspecified blob
of text.

That said you do have a point about one thing: why have both 'data' and
'src' attributes: they both have the same meaning. Perhaps rename the
'src' attribute on all elements to 'data'?

Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132

Received on Tuesday, 10 February 2004 13:54:11 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:07 UTC