Posted by Toby A Inkster on 03/14/07 00:46
David Dorward wrote:
> Grant Robertson wrote:
>
> <object data="foo.gif" type="image/gif">
> <object data="foo.jpeg" type="image/jpeg">
> <object data="foo.png" type="image/png">
> <object data="foo.svg" type="image/svg+xml">
> <p>Alternative content.</p>
> </object>
> </object>
> </object>
> </object>
>
> ... has been fine since HTML 4.0 ... shame about the browser support though.
>
>> 2)The alternatives aren't listed in the original content. They are
>> listed in a separate file that can be modified without changing the
>> original content at all.
>>
>> Can this be done in XHTML at all?
>
> Not with pure HTML.
You could use something along these lines:
<object data="foo">
<p>Alternative content</p>
</object>
Then allow the HTTP server and the browser to automatically negotiate the
best choice of content from foo.gif, foo.jpeg, foo.png and foo.svg using
standard HTTP content negotiation (which is well supported by Apache).
How well that all works in practise on today's user agents is another
matter entirely.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux
* = I'm getting there!
Navigation:
[Reply to this message]
|