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