Special functions are called when certain events occur. These special functions should be placed in the "Functions" program with the other "normal" functions.
Special Functions
| • | onConfigLoad() - this function is called when a configuration is loaded; it can be used to specify the validation modes that the configuration supports |
| • | onUnknownCSSPropertyMessage() - this function is called when a CSS property is unknown and a validator error message is about to be generated; this function can be used to ignore unknown CSS properties and/or to change or display additional messages when certain unknown CSS properties are used; the following variables are defined when this function is called and may be modified before the validator message is displayed: (New v7.9910) |
| • | $oucpm_property - the name of the unknown CSS property |
| • | $oucpm_msgtext - the default message text of the validator message that will be displayed |
| • | $oucpm_msgcat - the default message category of the validator message that will be displayed |
| • | $oucpm_msgflags - the default message category of the validator message that will be displayed; set to 0 to cancel the message |
| • | $oucpm_msgid - the default message ID of the validator message that will be displayed; the default is -1 for no message ID |
| • | $oucpm_msgtype - the default message category of the validator message that will be displayed; the default is $MSG_ERROR |
| • | onUnknownElementMessage() - this function is called when an HTML/XHTML element is unknown and a validator error message is about to be generated; this function can be used to ignore unknown elements and/or to change or display additional messages when certain unknown elements are used; the following variables are defined when this function is called and may be modified before the validator message is displayed: (New v7.9910) |
| • | $ouem_element - the name of the unknown element |
| • | $ouem_msgtext - the default message text of the validator message that will be displayed |
| • | $ouem_msgtextappend - an additional message that is appended to the end of $ouem_msgtext; the default is " Did you misspell it?" |
| • | $ouem_msgtextprepend - an additional message that is appended to the front of $ouem_msgtext; the default is an empty string (New v8.0100) |
| • | $ouem_msgcat - the default message category of the validator message that will be displayed; the default is "" for no category |
| • | $ouem_msgflags - the default message category of the validator message that will be displayed; set to 0 to cancel the message |
| • | $ouem_msgid - the default message ID of the validator message that will be displayed; the default is -1 for no message ID |
| • | $ouem_msgtype - the default message category of the validator message that will be displayed; the default is $MSG_ERROR |