From 07a67fa4bcc1b8bf2651ab41e5fc54a05059cf7e Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Sat, 29 Apr 2006 21:57:40 +0200 Subject: Load /tmp/libxml2-2.6.24 into libxml2/branches/upstream/current. --- HTMLparser.c | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'HTMLparser.c') diff --git a/HTMLparser.c b/HTMLparser.c index 12afdd8..2e646ad 100644 --- a/HTMLparser.c +++ b/HTMLparser.c @@ -3389,9 +3389,9 @@ htmlParseStartTag(htmlParserCtxtPtr ctxt) { const xmlChar *name; const xmlChar *attname; xmlChar *attvalue; - const xmlChar **atts = ctxt->atts; + const xmlChar **atts; int nbatts = 0; - int maxatts = ctxt->maxatts; + int maxatts; int meta = 0; int i; @@ -3403,6 +3403,9 @@ htmlParseStartTag(htmlParserCtxtPtr ctxt) { if (CUR != '<') return -1; NEXT; + atts = ctxt->atts; + maxatts = ctxt->maxatts; + GROW; name = htmlParseHTMLName(ctxt); if (name == NULL) { @@ -3753,10 +3756,8 @@ htmlParseReference(htmlParserCtxtPtr ctxt) { /** * htmlParseContent: * @ctxt: an HTML parser context - * @name: the node name * * Parse a content: comment, sub-element, reference or text. - * */ static void @@ -3874,6 +3875,19 @@ htmlParseContent(htmlParserCtxtPtr ctxt) { if (currentNode != NULL) xmlFree(currentNode); } +/** + * htmlParseContent: + * @ctxt: an HTML parser context + * + * Parse a content: comment, sub-element, reference or text. + */ + +void +__htmlParseContent(void *ctxt) { + if (ctxt != NULL) + htmlParseContent((htmlParserCtxtPtr) ctxt); +} + /** * htmlParseElement: * @ctxt: an HTML parser context @@ -3952,7 +3966,7 @@ htmlParseElement(htmlParserCtxtPtr ctxt) { /* * Capture end position and add node */ - if ( currentNode != NULL && ctxt->record_info ) { + if (ctxt->record_info) { node_info.end_pos = ctxt->input->consumed + (CUR_PTR - ctxt->input->base); node_info.end_line = ctxt->input->line; -- cgit v1.2.3