Ignore CSS Properties (tick_24Pro, cross_24Std, cross_24Lite)

If there is a CSS property that you want to ignore, then you can tell CSE HTML Validator to ignore it if you are using the professional or enterprise edition.

The easiest way may be to use the special ignore comments described in the Ignore Parts of a Document topic, but if that method is not suitable for your needs then you can create (if you don't have one already) a 'user functions' file and specify it in the Config Files Page in the Validator Engine Options.

In the user functions file, create this function (or add the code to the function if it already exists in an already existing user functions file):

function onUnknownCSSPropertyMessage() {
 if matchNoCase($oucpm_property,"ignore-this") {
  $oucpm_msgflags=0;
  setValueString(12,$oucpm_property);
 }

If you want to add more CSS properties to ignore, then add them to the end of the parameters of the matchNoCase() function, separating each string with a comma. Example: matchNoCase($oucpm_property,"ignore-this","ignore-this-too")

You can also display your own message when an unknown CSS property is encountered. See the onUnknownCSSPropertyMessage() topic for more information.

hmtoggle_plus1Alternate Method (an older method which is not recommended)

Let's say you want to ignore a CSS property named "ignore-this". To tell CSE HTML Validator to ignore this CSS property, follow these steps:

1.Go to Options->Configuration Editor->Programs tab.

2.Select the Functions radio button.

3.Find the onUnknownCSSPropertyMessage() function (or create one if it doesn't exist--but the function should exist if you are using a v8.0 configuration file).

4.Add the following code:
if matchNoCase($oucpm_property,"ignore-this") {
 #oucpm_msgflags=0;
 setValueString(12,$oucpm_property);
}

5.If you want to add more CSS properties to ignore, then add them to the end of the parameters of the matchNoCase() function, separating each string with a comma. Example: matchNoCase($oucpm_property,"ignore-this","ignore-this-too")

6.Use Save Config As to save the configuration file with the new changes to a new filename so it is not overwritten at the next update. Set CSE HTML Validator to use this new configuration file as the default configuration in the Validator Engine Options. You may be asked to set this automatically when you save the configuration file.

You can also display your own message when an unknown CSS property is encountered. See the onUnknownCSSPropertyMessage() topic for more information.