Re: [selectors4] Requested selectors

On 31/08/2012 10:23 AM, Alan Gresley wrote:
> On 31/08/2012 10:02 AM, Belov, Charles wrote:
>> I respectfully suggest the following selectors (and apologize if
>> they've already been suggested and rejected):
>>
>> E:foreign-link(0)     an E element being the source anchor of a
>> hyperlink of which the target is not within the current domain     The
>> foreign link pseudo-class     4
>>
>> Question as to distinguishing between same (a) domain, different
>> subdomain and (b) different domain.
>>
>
> Can this not be done with attribute selectors?
>
> a[href*="domain"] /* style */
>
> a[href*="sub-domain.domain"] /* style */


Oh foreign domains..... This can be a with attribute selectors (like 
below with :not()) and :foreign-link (not sure of the support) as Tab 
has just mentioned.


a:not([href*="domain"]) /* style */

a:not([href*="sub-domain.domain"]) /* style */


Alan


-- 
Alan Gresley
http://css-3d.org/
http://css-class.com/

Received on Friday, 31 August 2012 00:45:08 UTC