Hello Roedy,
Here is more information on the "class" attribute:
http://www.w3.org/html/wg/drafts/html/m ... ml#classesAnd the parsing information:
http://www.w3.org/html/wg/drafts/html/m ... -on-spacesSo it should not be a problem. Preceding and trailing spaces should be kosher.
However, it should be possible to write a small "user function" to generate a message if there are leading or trailing white-space characters. I've done this below.
- Code: Select all
function onAttributeID_124() { // "_124" because 124 is the ID of the "class" attribute
if checkString(3,CurrentAttValue) {
Message(1,MSG_WARNING,'The value for "'+CurrentAttName+'" has has leading and/or trailing white-space characters.',getAttValueLocation(CurrentAttIndex));
}
}
Just put all your user functions in a *.cfg text file and specify that filename in the
Validator Engine Options,
Validator Engine->Config File page. You'll need to reload the configuration for any changes in the file to take effect.