Sent by Kevin Smith on 26 September 2002 14:02
On 09.25.2002 11:55 PM, Timothy J. Luoma wrote:
>>> a:after { content: " ["attr(href)"]"; }
>>>
>>> Mozilla gives you: New Every Weekday: Checkout the Daily Dose of
>>> Ethan [/ethan/daily/]
>>
>> Correct. That's what the rule calls for.
>
> Is this explicitly stated in the specs somewhere?
The spec says it's supposed to be "a string the value of attribute X for the
subject of the selector." So, the browser should render exactly the
characters that appear between the quotes, nothing more.
<http://www.w3.org/TR/REC-CSS2/generate.html#content>
> there is a great deal of difference between a class and an HREF.
Not in this context. They're both attributes whose value is a string.
> Printing out the full URL isn't a bad idea from a usability standpoint.
Agreed, but in order to calculate the absolute URL, the user agent would
need to access either window.location or document.location, and neither of
those are part of the W3C DOM.
--
kevin c smith tel: 410.571.9462
[EMAIL-REMOVED] http://www.tatnet.com