diff options
author | Urban Müller | 2011-06-27 10:30:05 +0000 |
---|---|---|
committer | Urban Müller | 2011-06-27 10:30:05 +0000 |
commit | ed29f152dd09160358a14bdc48d6aaa3bc57c289 (patch) | |
tree | 65321fff1a1263d45ee0e01feb3230ae69bbaf30 | |
parent | df92d093d9a3f6ca9da961ecfc1ad01f6d53e5f7 (diff) | |
download | itools-ed29f152dd09160358a14bdc48d6aaa3bc57c289.tar.gz itools-ed29f152dd09160358a14bdc48d6aaa3bc57c289.tar.bz2 itools-ed29f152dd09160358a14bdc48d6aaa3bc57c289.zip |
hide background:rgba from validator
-rw-r--r-- | itjs.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -51,7 +51,7 @@ 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'])) - $data = it::replace(array('background[^;}]*gradient[^;}]*;?' => "", '(filter:\s*progid|text-overflow:|zoom:|-webkit|display:-moz-|-moz-|-o-|cursor:|border-radius:|behavior:|\w+:expression)[^;}]*;?' => "", 'html\.ie6.*' => "", '([^/])\*(\w)' => '$1$2'), $data); + $data = it::replace(array('background[^;}]*(gradient|rgba)[^;}]*;?' => "", '(filter:\s*progid|text-overflow:|zoom:|-webkit|display:-moz-|-moz-|-o-|cursor:|border-radius:|behavior:|\w+:expression)[^;}]*;?' => "", 'html\.ie6.*' => "", '([^/])\*(\w)' => '$1$2'), $data); } else if (!it::match('\.html$', $file)) { |