- From: Laurens Holst <lholst@students.cs.uu.nl>
- Date: Tue, 29 Mar 2005 21:28:59 +0200
- To: www-style@w3.org
Anne van Kesteren wrote:
>>>> OTOH, img:alt { content: attr(alt) } sounds kinda nice. Though
>>>> that wouldn’t work with XHTML 2.0.
>>>
>>> Why not?
>>
>> There is no img element in XHTML 2.0.
>
> Heh, ok...
>
> I thought it was intended as a more general pseudo-class as it was
> proposed in the light of background image and such... Actually, the
> original proposal applied the pseudo-class to the P element.
What I meant was that in XHTML 2.0 alternate text is no longer provided
as an attribute. Instead it is done like this[1]:
<h1 src="heading1.jpg"><em>Surely</em> this would be cool to have</h1>
Since as far as I know there is no such thing as er... content:
content() or something.
~Grauw
[1] http://www.w3.org/TR/xhtml2/introduction.html#s_intro_differences
http://www.w3.org/TR/xhtml2/mod-embedding.html#adef_embedding_src
--
Ushiko-san! Kimi wa doushite, Ushiko-san!!
Received on Tuesday, 29 March 2005 19:28:59 UTC