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

Function htmlParserFinishElementParsing

ThirdParty/libxml2/vtklibxml2/HTMLparser.c:4413–4429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4411}
4412
4413static void
4414htmlParserFinishElementParsing(htmlParserCtxtPtr ctxt) {
4415 /*
4416 * Capture end position and add node
4417 */
4418 if ( ctxt->node != NULL && ctxt->record_info ) {
4419 ctxt->nodeInfo->end_pos = ctxt->input->consumed +
4420 (CUR_PTR - ctxt->input->base);
4421 ctxt->nodeInfo->end_line = ctxt->input->line;
4422 ctxt->nodeInfo->node = ctxt->node;
4423 xmlParserAddNodeInfo(ctxt, ctxt->nodeInfo);
4424 htmlNodeInfoPop(ctxt);
4425 }
4426 if (CUR == 0) {
4427 htmlAutoCloseOnEnd(ctxt);
4428 }
4429}
4430
4431/**
4432 * htmlParseElementInternal:

Callers 2

htmlParseElementInternalFunction · 0.85
htmlParseContentInternalFunction · 0.85

Calls 3

xmlParserAddNodeInfoFunction · 0.85
htmlNodeInfoPopFunction · 0.85
htmlAutoCloseOnEndFunction · 0.85

Tested by

no test coverage detected