hasAttWithStringValue() (tick_24Validator Engine Only)

int hasAttWithStringValue(string $attribute, string $value[, int $flags])

Returns 1 if $attribute exists and has the value $value, else returns zero.

Performs a case-insensitive compare and, before comparing, removes any leading and trailing spaces from the attribute value (not from the value parameter and after any character references have been replaced).


1 - $value is a token in a space-separated list of tokens (case-insensitive) (New v11.0114)

Use only in tag name start programs. In v14.00+, can also be used in attribute and attribute value programs.

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