* htmlIsAutoClosed: * @doc: the HTML document * @elem: the HTML element * * The HTML DTD allows a tag to implicitly close other tags. * The list is kept in htmlStartClose array. This function checks * if a tag is autoclosed by one of it's child * * Returns 1 if autoclosed, 0 otherwise */
| 1529 | * Returns 1 if autoclosed, 0 otherwise |
| 1530 | */ |
| 1531 | int |
| 1532 | htmlIsAutoClosed(htmlDocPtr doc, htmlNodePtr elem) { |
| 1533 | htmlNodePtr child; |
| 1534 | |
| 1535 | if (elem == NULL) return(1); |
| 1536 | child = elem->children; |
| 1537 | while (child != NULL) { |
| 1538 | if (htmlAutoCloseTag(doc, elem->name, child)) return(1); |
| 1539 | child = child->next; |
| 1540 | } |
| 1541 | return(0); |
| 1542 | } |
| 1543 | |
| 1544 | /** |
| 1545 | * htmlCheckImplied: |
nothing calls this directly
no test coverage detected