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

Re: Please remove the src and type attributes.

From: Orion Adrian <oadrian@hotmail.com>
Date: Tue, 10 Feb 2004 14:24:11 -0500
To: www-html@w3.org
Message-ID: <BAY1-F80uUDisSTFvIf0002e89a@hotmail.com>

>| <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'?
>

Ok my example isn't quite the same, but it can be easily make the same.  The 
example should have read:

<object data="holiday.png" type="image/png">
    <object data="holiday.gif" type="image/gif">
        <p>An image of us on holiday.</p>
    </object>
</object>

Now it is a paragraph.  Or similarly a table in the table example.

Orion Adrian

_________________________________________________________________
Optimize your Internet experience to the max with the new MSN Premium 
Internet Software. http://click.atdmt.com/AVE/go/onm00200359ave/direct/01/
Received on Tuesday, 10 February 2004 14:24:41 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:19:04 UTC