Re: Proposal of [attr/=regex] selector

Peter Moulder wrote:
> What is the use case? 

So what the fuck is the use case of [attr^=beginning]?
You can, for example, replace that:

	a.article
	{
		color:blue
	}

	<a href="http://jsmith/article/1234" class="article">One</a>
	<a href="http://example/article/4321" class="article">Two</a>

with that:


	a[href/=/article/]
	{
		color:blue
	}

	<a href="http://jsmith/article/1234">One</a>
	<a href="http://example/article/4321">Two</a>

> At present, lots of software has incomplete
> support for CSS.  Adding more features to CSS makes it less likely for
> existing features to be added. 

Is that what you call an argument?! And what does mean 'lots of 
software'? Internet Evil?

> Regular expression implementation is
> non-trivial; this feature would be costly for small devices (mobile
> phones) for a feature that is rarely needed. 

Have you ever used Opera Mini?

> Could the intended use
> case be achieved with XSLT or scripting?
> http://www.w3.org/TR/xquery-operators/#func-matches provides regular
> expression matching that can be used from XSLT 2.0.  XSLT
> (http://www.w3.org/TR/xslt20/) and more specifically XPath
> (http://www.w3.org/TR/xpath20/) provides more powerful selectors than
> CSS, and the output of XSLT can use CSS. 

And this is arg for yes.

> [...]

-- 
Nikodem

Received on Tuesday, 23 October 2007 14:10:50 UTC