W3C home > Mailing lists > Public > www-style@w3.org > April 2003

Re: :here for Links

From: Alexander Savenkov <w3@hotbox.ru>
Date: Sun, 13 Apr 2003 19:47:56 +0400
Message-ID: <914692750.20030413194756@hotbox.ru>
To: www-style@w3.org, glazman@netscape.com (Daniel Glazman)
CC: Ernest Cline <ernestcline@mindspring.com>

Hello everyone,

2003-03-31T11:44:38Z Daniel Glazman <glazman@netscape.com> wrote:

> Ernest Cline wrote:

>> That can already be done with CSS3 Selectors. The selector a[href^="#"] would 
>> select all links that begin with "#" and hence point to the current page.

> That's clearly not enough. if the document's URL is 
> http://www.example.com/foo.html and the href of the link is 
> foo.html#bar, that's a local URL too and it does not begin with #...

From Selectors CR:
E[foo*="bar"] - an E element whose "foo" attribute value contains the
substring "bar".

I.e.:
*[href*="#"] { }

Regards,
Alex.
-- 
  Alexander "Croll" Savenkov                  http://www.thecroll.com/
  w3@hotbox.ru                                     http://croll.da.ru/
Received on Sunday, 13 April 2003 13:32:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:21 GMT