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

Function htmlAutoCloseOnEnd

ThirdParty/libxml2/vtklibxml2/HTMLparser.c:1452–1464  ·  view source on GitHub ↗

* htmlAutoCloseOnEnd: * @ctxt: an HTML parser context * * Close all remaining tags at the end of the stream */

Source from the content-addressed store, hash-verified

1450 * Close all remaining tags at the end of the stream
1451 */
1452static void
1453htmlAutoCloseOnEnd(htmlParserCtxtPtr ctxt)
1454{
1455 int i;
1456
1457 if (ctxt->nameNr == 0)
1458 return;
1459 for (i = (ctxt->nameNr - 1); i >= 0; i--) {
1460 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL))
1461 ctxt->sax->endElement(ctxt->userData, ctxt->name);
1462 htmlnamePop(ctxt);
1463 }
1464}
1465
1466/**
1467 * htmlAutoClose:

Callers 6

htmlParseContentFunction · 0.85
htmlParseElementFunction · 0.85
htmlParseContentInternalFunction · 0.85
htmlParseDocumentFunction · 0.85
htmlParseTryOrFinishFunction · 0.85

Calls 1

htmlnamePopFunction · 0.85

Tested by

no test coverage detected