diff options
author | Urban Müller | 2014-05-13 14:26:18 +0200 |
---|---|---|
committer | Urban Müller | 2014-05-13 14:26:18 +0200 |
commit | f7e1ec87f7261e2bc9de9bdecb91b8cde81e22ea (patch) | |
tree | 8e74c451f1c0b0ec3e838e4c83a07910924f9739 | |
parent | 35a823671c5c1484debb51cd696303a3cd35ab99 (diff) | |
download | itools-f7e1ec87f7261e2bc9de9bdecb91b8cde81e22ea.tar.gz itools-f7e1ec87f7261e2bc9de9bdecb91b8cde81e22ea.tar.bz2 itools-f7e1ec87f7261e2bc9de9bdecb91b8cde81e22ea.zip |
reformatted CSS validator whitelist, added :valid:
-rw-r--r-- | itjs.php | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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)) { |