isNChildTag() (tick_24Validator Engine Only)

int isNChildTag(int $n[, int $flags])

Returns $n if the current tag is the nth child element (tag) of its parent, or 0 if not.

$flags - supply this optional argument to change the functionality (New v14.00)

1 - count all nodes including text nodes except for text nodes containing only inter-element whitespace (HTML5 space characters)

2 - don't count script-supporting elements

Use only in tag name start programs, attribute programs, and attribute value programs.

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