In all Opera versions, including 7 beta, a CSS selector
[href="http://www.example.org/foo"]
matches an element with href="foo" if "http://www.example.org/" is
the current base URI. I think this is a violation of the CSS
specification.
See <http://schneegans.de/temp/selector-href.html> for a test case.
Note that Mozilla get this right.
a[href]:after {
content: attr(href);
}
shows a similar behaviour, relative URI references are displayed as
resolved ones.
> Hello!
>
> In all Opera versions, including 7 beta, a CSS selector
>
> [href="http://www.example.org/foo"]
>
> matches an element with href="foo" if "http://www.example.org/" is the
> current base URI. I think this is a violation of the CSS specification.
Yes. This is not something we have given priority to, but I agree it isn't
according to spec (the match should be on the attribute value, not the
resolved URL). We will change this one day.
Not that I can recommend it, the related attr(href) behavior also isn't
according to spec (giving the actual URL, not the relative one), but is
very convenient, especially when using it in print style sheets.
--
Jonny Axelsson,
Web Standards,
Opera Software