checkTagAttributes() (tick_24Validator Engine Only)

int checkTagAttributes(int $checktype, int $flags[, any optional parameters]);

$checktype

1 - supply two additional string parameters, $attname and $valuecontains; checks the last child of the current node and returns 1 if it contains an attribute named $attname and that attribute has a value that contains the string $valuecontains, else returns 0; a case-insensitive compare is made; $valuecontains may be anywhere in the value

specify flag 1 instead of $valuecontains to search for "layout" or its equivalent (New v10.9916)

2 - supply additional string parameters that are attribute names to check; for each attribute name, if the attribute was used then make sure the value does not contain only whitespace characters; the return value is the attribute index of the last attribute checked that had a value that contained only whitespace characters; if no values are found that contain only whitespace then the return value is 0 (New v10.9924)

specify flag 1 to generate an error message for every attribute whose value contains only whitespace characters

3 - supply two additional string parameters, $attname and $valueis; checks the last child of the current node and returns 1 if it contains an attribute named $attname and that attribute has a value that equals the string $valueis, else returns 0; a case-insensitive compare is made (New v10.9950)