isAttValueEmpty() (tick_24Validator Engine Only)

int isAttValueEmpty(int $index)

Returns 1 if the attribute value at $index exists and is empty. The first attribute value has an index of 1, and is the attribute value for the attribute that also has an index of 1. An index of 0 is the value attached to the tag name which generally should not exist.

An empty string may contain no characters at all ("") or it may only contain space characters ("  ").

Generates an error if the attribute at $index does not exist, because if the attribute doesn't exist, then it can't have a value.

This function is supported by CSE HTML Validator v10.9923 and later.