checkTagLocation() (tick_24Validator Engine Only)

int checkTagLocation(int $checktype, int $flags);

$checktype

1 - check that flow content does not precede the current tag (good to use for elements like "param")

$flags

1 - display default error messages if needed

2 - "track" elements should not precede the current tag either

2 - returns 1 if the current tag has an ancestor "a" element with an "href" attribute, else returns 0 (good to use for "img" elements with the "ismap" attribute)

3 - check that the tag is the first child element of its parent (good to use for elements like "legend")

$flags

1 - display default error messages if needed

This function is supported only in CSE HTML Validator v14.00 and later.