hasChildElement() (tick_24Validator Engine Only)

int hasChildElement(string $element1[, string $element2...])

Returns the element child index (1 or greater) of the first $elementx that exists as a child for the element currently being ended, else returns 0.

Use in tag name end programs to quickly determine whether the element being ended contains a child element

See also: hasDescendentElement()

This function is supported by CSE HTML Validator v11.0114 and later.