summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--itjs.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/itjs.php b/itjs.php
index 148b8ff..3fc5441 100644
--- a/itjs.php
+++ b/itjs.php
@@ -44,7 +44,16 @@ else if (it::match('\.css', $_SERVER['PHP_SELF']))
if (!it::match('^devel', $GLOBALS['ULTRASERVERTYPE']))
$data = it::replace(array('[ \t]*([{};])[ \t]*' => '$1', '/\*.*?\*/' => ""), $data);
if (it::match('W3C_CSS_Validator', $_SERVER['HTTP_USER_AGENT']) || EDC('w3c'))
- $data = it::replace(array('@-.*' => "", 'background[^;}]*(gradient|rgba)[^;}]*;?' => "", '(filter:\s*(progid|none)|text-overflow:|zoom:|-webkit-|display:-moz-|-moz-|-o-|cursor:|border-radius:|behavior:|\w+:expression)[^;}]*;?' => "", 'pointer-events:[^;}]*' => "", 'html\.ie6.*' => "", '([^/])\*(\w)' => '$1$2'), $data);
+ $data = it::replace(array(
+ '@-.*' => "",
+ 'background[^;}]*(gradient|rgba)[^;}]*;?' => "",
+ '(filter:\s*(progid|none)|text-overflow:|zoom:|-webkit-|display:-moz-|-moz-|-o-|cursor:|border-radius:|behavior:|\w+:expression)[^;}]*;?' => "",
+ 'pointer-events:[^;}]*' => "",
+ 'html\.ie6.*' => "",
+ ':valid:' => ":", # hack for iOS datetime
+ '([^/])\*(\w)' => '$1$2'),
+ $data
+ );
}
else if (it::match('\.htc$', $file))
{