Re: :here for Links

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 UTC