MCPcopy Create free account
hub / github.com/Kitware/VTK / htmlIsAutoClosed

Function htmlIsAutoClosed

ThirdParty/libxml2/vtklibxml2/HTMLparser.c:1531–1542  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

1529 * Returns 1 if autoclosed, 0 otherwise
1530 */
1531int
1532htmlIsAutoClosed(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:

Callers

nothing calls this directly

Calls 1

htmlAutoCloseTagFunction · 0.85

Tested by

no test coverage detected