| 4411 | } |
| 4412 | |
| 4413 | static void |
| 4414 | htmlParserFinishElementParsing(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: |
no test coverage detected