Re: Selectors

I wrote:
> Firstly, :contains is not a pseudo-class. 

This is me getting rather confused. I initially thought :contains() was
a straight name change from "", which I was under the impression was a
pseudo-element where P"hello" made the text "hello" in a P element red
(because the text was under the pseudo-elements, although from the
contents section I see that it was not part of that section).

The description has not changed substantially - and if one is not clear
about the distinction between a pseudo-class and pseudo-element, the
text is ambiguous: 'The :contains("foo") [the word 'pseudo-class' is
inadverdently omitted] represents a substring of the textual contents of
an element. The argument of this pseudo-class can be a string
(surrounded by double quotes) or a keyword.'

It says what it represents but not what it selects. It also doesn't
explain what 'a keyword' is.

It would still be nice to have that text selection feature (there is no
obligation to support these things).

http://lists.w3.org/Archives/Public/www-style/1999Nov/0017.html

(:"" to select text, plus :chars () (see
http://lists.w3.org/Archives/Public/www-style/2000Feb/0053.html)).

> Regarding :target, I would like to see :local, matching a specifically
> local link (i.e., href="#any" instead of href="any.html#any"); I know
> this is something I often would like to select.

And this was me not reading what was written; I thought it was selecting
an element that has a target element, whereas it actually selects an
element that was the target of a link. So clarification is in order.
:local matches the referrer; i.e., A:local matches <A
href="#local"></a>.

-----------------------------------
Please visit http://RichInStyle.com. Featuring:
MySite: customizable styles.         AlwaysWork style 
Browser bug table covering all CSS2 with links to descriptions.
Lists of > 1000 browser bugs         Websafe Colorizer 
CSS2, CSS1 and HTML4 tutorials.      CSS masterclass 
CSS2 test suite: 5000++ tests and 300+ test pages.

Received on Wednesday, 17 May 2000 09:04:56 UTC