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

4 - check that the tag is in a "fieldset" element or WAI-ARIA group (role="group" or role="radiogroup") (new v17.02)

5 - check that the tag in in another element that has a WAI-ARIA label (new v17.02)

This function is supported by CSS HTML Validator v14.00 and later.