W3C home > Mailing lists > Public > www-style@w3.org > August 2003

Re: E[foo*="bar"] selector

From: fantasai <fantasai@escape.com>
Date: Sun, 31 Aug 2003 19:31:23 -0400
Message-ID: <3F52854B.2080000@escape.com>
To: www-style@w3.org

Matt wrote:
> What if I have an element like this:
> <a href="?alpha=200&amp;beta=300">blah</a>
> 
> Which of these selectors should match it?
> 
> a[href*="alpha=200&amp;beta=300"]
> a[href*="alpha=200&beta=300"]
> 
> i.e. Does the CSS selector match the HTML entity, or its replaced character?

The replaced character. Entity replacement is done during
parsing, and CSS doesn't care what happens at that stage
of document processing.

~fantasai
Received on Sunday, 31 August 2003 19:31:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:23 GMT