You are here

private function CSSCompression_Selectors::pseudoSpace in Advanced CSS/JS Aggregation 6

Same name and namespace in other branches
  1. 7 advagg_css_compress/css-compressor-3.x/src/lib/Selectors.inc \CSSCompression_Selectors::pseudoSpace()

Adds space after pseudo selector for ie6 like a:first-child{ => a:first-child {

Parameters

(string) selector: CSS Selector:

1 call to CSSCompression_Selectors::pseudoSpace()
CSSCompression_Selectors::selectors in advagg_css_compress/css-compressor-3.x/src/lib/Selectors.inc
Selector specific optimizations

File

advagg_css_compress/css-compressor-3.x/src/lib/Selectors.inc, line 219

Class

CSSCompression_Selectors
CSS Compressor [VERSION] [DATE] Corey Hart @ http://www.codenothing.com

Code

private function pseudoSpace($selector) {
  return preg_replace($this->rpseudo, ":first-\$1 \$2", $selector);
}