* htmlAutoCloseOnEnd: * @ctxt: an HTML parser context * * Close all remaining tags at the end of the stream */
| 1450 | * Close all remaining tags at the end of the stream |
| 1451 | */ |
| 1452 | static void |
| 1453 | htmlAutoCloseOnEnd(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: |
no test coverage detected