getNumAncestorElements() (tick_24Validator Engine Only)

int getNumAncestorElements(int $flags)

Returns the number of ancestor elements (0 or greater).

$flags - changes function behavior

1 - don't count implied elements

2 - reserved; do not use

This function is supported by CSS HTML Validator v18.0214 and later.