Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- What is this CSS definition?
- Tami Fischer
August 16, 2004, 7:26 am
rate this thread
Re: What is this CSS definition?
So in this case, a[href ^="http:"] is a selector that matches those <a>
elements that have an href attribute and that attribute's value begins
with the string "http:".
And it is not standard CSS - it does not belong to the CSS 2.0
specification or the CSS 2.1 draft, and CSS 3.0 is just a collection of
various sketches. Note that the CSS 3.0 Selectors draft is titled
"W3C Candidate Recommendation 13 November 2001", with text saying:
"This is still a draft document and may be updated, replaced, or
obsoleted by other documents at any time. It is inappropriate to cite a
W3C Candidate Recommendation as other than "work in progress.""
Actually that draft also says:
"The duration of Candidate Recommendation is expected to last
approximately six months (ending May, 2002)."
(If I remember the W3C policies and process documents correctly, the
draft should actually have been moved down to a lower - less mature -
level long ago, since it did not progress to a Proposed Recommendation.)
Moreover, even the simpler attribute selectors as defined in CSS 2
have very poor support - IE doesn't get them at all. That's why pragmatic
authors use lots of classes instead.
Yucca, http://www.cs.tut.fi/~jkorpela /
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html