- From: Bert Bos <bert@w3.org>
- Date: Tue, 7 Feb 2006 12:16:25 +0100
- To: public-cdf@w3.org
On Sunday 29 January 2006 12:45, Timur Mehrvarz wrote: > > 3) 3.2.1 Scalable Foreground Child Elements > > > > XHTML also has an IMG element. Is it expected that IMG elements > > work the > > same as OBJECT elements (apart from parameter attributes, > > obviously)? Or is that undefined? > > Yes, anything that can be done with the <img> element (in regard to > scalable child elements), can be done as good or better using the > <object> element. The idea is to make authors use the <object> > element for this type of content. One advantage of <object> is, to > allow alternative content to be provided (for non WICD agents). So do I understand correctly that <p>...<img src="image.svg" alt="foo">... is meant to have the same effect as <p>...<object data="image.svg">foo</object>... (assuming the same CSS rules for both)? If so, can that be explicitly added (and tested)? Because I think it should indeed work like this, but many browsers currently seem to treat them the same for *some* types of content but not for others. I think it is also important to demand consistency now in view of the future deployment of XHTML2. If implementations are consistent now with IMG and OBJECT, it is more likely that they will also support <p src="images.svg"> in XHTML2. Bert -- Bert Bos ( W 3 C ) http://www.w3.org/ http://www.w3.org/people/bos W3C/ERCIM bert@w3.org 2004 Rt des Lucioles / BP 93 +33 (0)4 92 38 76 92 06902 Sophia Antipolis Cedex, France
Received on Tuesday, 7 February 2006 11:16:35 UTC