getAttLocation[ForStartTag]() (tick_24Validator Engine Only)

location getAttLocation(int or string $index)

location getAttLocationForStartTag(int $index)

Returns the location of an attribute of the tag, specified by the attribute index $index. The first attribute has an index of 1. An index of 0 returns the location of the tag name.

Generates an error if the attribute at $index does not exist.

In v11.9915 and above, $index for getAttLocation() may also be a string that is the attribute name (case-insensitive)

getAttLocationForStartTag() is like getAttLocation() but can also be used in an end tag program to get the location of an attribute of the corresponding start tag, specified by the attribute index index; may require that runProgram(21) be used in the start tag name program (New v11.0112)