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

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 UTC