MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / htmlAutoCloseOnEnd

Function htmlAutoCloseOnEnd

Externals/LibXML/HTMLparser.c:1194–1206  ·  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

1192 * Close all remaining tags at the end of the stream
1193 */
1194static void
1195htmlAutoCloseOnEnd(htmlParserCtxtPtr ctxt)
1196{
1197 int i;
1198
1199 if (ctxt->nameNr == 0)
1200 return;
1201 for (i = (ctxt->nameNr - 1); i >= 0; i--) {
1202 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL))
1203 ctxt->sax->endElement(ctxt->userData, ctxt->name);
1204 htmlnamePop(ctxt);
1205 }
1206}
1207
1208/**
1209 * htmlAutoClose:

Callers 5

htmlAutoCloseFunction · 0.85
htmlParseContentFunction · 0.85
htmlParseElementFunction · 0.85
htmlParseDocumentFunction · 0.85
htmlParseTryOrFinishFunction · 0.85

Calls 2

htmlnamePopFunction · 0.85
endElementMethod · 0.45

Tested by

no test coverage detected