Beispiel #1
0
 /**
  * 
  * validate css property
  * @param array $token
  */
 public function validateProperty($token)
 {
     if (!$this->options['property_hack']) {
         return true;
     }
     if (!Fl_Css_Static::checkPropertyPattern($token['value'])) {
         return $this->addMessage("property `" . $token['value'] . "` is not valid", 'property_hack', $token);
     }
     if (strpos($token['value'], 'filter') !== false) {
         return $this->addMessage("property `" . $token['value'] . "` is not valid", 'filter', $token);
     }
 }