Lines Matching refs:NULL
79 if ((ctxt != NULL) && (ctxt->disableSAX != 0) && in htmlErrMemory()
82 if (ctxt != NULL) { in htmlErrMemory()
88 __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_PARSER, in htmlErrMemory()
89 XML_ERR_NO_MEMORY, XML_ERR_FATAL, NULL, 0, extra, in htmlErrMemory()
90 NULL, NULL, 0, 0, in htmlErrMemory()
93 __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_PARSER, in htmlErrMemory()
94 XML_ERR_NO_MEMORY, XML_ERR_FATAL, NULL, 0, NULL, in htmlErrMemory()
95 NULL, NULL, 0, 0, "Memory allocation failed\n"); in htmlErrMemory()
112 if ((ctxt != NULL) && (ctxt->disableSAX != 0) && in htmlParseErr()
115 if (ctxt != NULL) in htmlParseErr()
117 __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_HTML, error, in htmlParseErr()
118 XML_ERR_ERROR, NULL, 0, in htmlParseErr()
120 NULL, 0, 0, in htmlParseErr()
122 if (ctxt != NULL) in htmlParseErr()
139 if ((ctxt != NULL) && (ctxt->disableSAX != 0) && in htmlParseErrInt()
142 if (ctxt != NULL) in htmlParseErrInt()
144 __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_HTML, error, in htmlParseErrInt()
145 XML_ERR_ERROR, NULL, 0, NULL, NULL, in htmlParseErrInt()
146 NULL, val, 0, msg, val); in htmlParseErrInt()
147 if (ctxt != NULL) in htmlParseErrInt()
179 if (ctxt->nameTab == NULL) { in htmlnamePush()
180 htmlErrMemory(ctxt, NULL); in htmlnamePush()
202 return (NULL); in htmlnamePop()
205 return (NULL); in htmlnamePop()
209 ctxt->name = NULL; in htmlnamePop()
211 ctxt->nameTab[ctxt->nameNr] = NULL; in htmlnamePop()
235 if (ctxt->nodeInfoTab == NULL) { in htmlNodeInfoPush()
236 htmlErrMemory(ctxt, NULL); in htmlNodeInfoPush()
257 return (NULL); in htmlNodeInfoPop()
260 return (NULL); in htmlNodeInfoPop()
264 ctxt->nodeInfo = NULL; in htmlNodeInfoPop()
366 if ((ctxt == NULL) || (ctxt->input == NULL) || in htmlFindEncoding()
367 (ctxt->input->encoding != NULL) || (ctxt->input->buf == NULL) || in htmlFindEncoding()
368 (ctxt->input->buf->encoder != NULL)) in htmlFindEncoding()
369 return(NULL); in htmlFindEncoding()
370 if ((ctxt->input->cur == NULL) || (ctxt->input->end == NULL)) in htmlFindEncoding()
371 return(NULL); in htmlFindEncoding()
377 return(NULL); in htmlFindEncoding()
380 if (cur == NULL) in htmlFindEncoding()
381 return(NULL); in htmlFindEncoding()
383 if (cur == NULL) in htmlFindEncoding()
384 return(NULL); in htmlFindEncoding()
386 if (cur == NULL) in htmlFindEncoding()
387 return(NULL); in htmlFindEncoding()
396 return(NULL); in htmlFindEncoding()
517 if (guess == NULL) { in htmlCurrentChar()
520 if (ctxt->input->encoding != NULL) in htmlCurrentChar()
524 if (handler != NULL) { in htmlCurrentChar()
528 "Unsupported encoding %s", guess, NULL); in htmlCurrentChar()
556 BAD_CAST buffer, NULL); in htmlCurrentChar()
640 #define EMPTY NULL
643 static const char* const html_flow[] = { FLOW, NULL } ;
644 static const char* const html_inline[] = { INLINE, NULL } ;
647 static const char* const html_pcdata[] = { NULL } ;
666 static const char* const html_attrs[] = { ATTRS, NULL } ;
667 static const char* const core_i18n_attrs[] = { COREATTRS, I18N, NULL } ;
668 static const char* const core_attrs[] = { COREATTRS, NULL } ;
669 static const char* const i18n_attrs[] = { I18N, NULL } ;
675 "tabindex", "onfocus", "onblur", NULL } ;
676 static const char* const target_attr[] = { "target", NULL } ;
677 static const char* const rows_cols_attr[] = { "rows", "cols", NULL } ;
678 static const char* const alt_attr[] = { "alt", NULL } ;
679 static const char* const src_alt_attrs[] = { "src", "alt", NULL } ;
680 static const char* const href_attrs[] = { "href", NULL } ;
681 static const char* const clear_attrs[] = { "clear", NULL } ;
682 static const char* const inline_p[] = { INLINE, "p", NULL } ;
684 static const char* const flow_param[] = { FLOW, "param", NULL } ;
687 "hspace", "vspace", NULL } ;
689 "tabindex", "accesskey", "onfocus", "onblur", NULL } ;
691 { "id", "size", "color", "face", NULL } ;
692 static const char* const quote_attrs[] = { ATTRS, "cite", NULL } ;
693 static const char* const body_contents[] = { FLOW, "ins", "del", NULL } ;
694 static const char* const body_attrs[] = { ATTRS, "onload", "onunload", NULL } ;
696 "link", "vlink", "alink", NULL } ;
698 "disabled", "tabindex", "accesskey", "onfocus", "onblur", NULL } ;
701 static const char* const col_attrs[] = { ATTRS, "span", "width", CELLHALIGN, CELLVALIGN, NULL } ;
702 static const char* const col_elt[] = { "col", NULL } ;
703 static const char* const edit_attrs[] = { ATTRS, "datetime", "cite", NULL } ;
704 static const char* const compact_attrs[] = { ATTRS, "compact", NULL } ;
705 static const char* const dl_contents[] = { "dt", "dd", NULL } ;
706 static const char* const compact_attr[] = { "compact", NULL } ;
707 static const char* const label_attr[] = { "label", NULL } ;
709 static const char* const font_attrs[] = { COREATTRS, I18N, "size", "color", "face" , NULL } ;
710 …r", "noscript", "noframes", "blockquote", "isindex", "hr", "table", "fieldset", "address", NULL } ;
711 …= { ATTRS, "method", "enctype", "accept", "name", "onsubmit", "onreset", "accept-charset", NULL } ;
712 …c", "name", "src", "frameborder", "marginwidth", "marginheight", "noresize", "scrolling" , NULL } ;
713 static const char* const frameset_attrs[] = { COREATTRS, "rows", "cols", "onload", "onunload", NULL…
714 static const char* const frameset_contents[] = { "frameset", "frame", "noframes", NULL } ;
715 static const char* const head_attrs[] = { I18N, "profile", NULL } ;
716 …ad_contents[] = { "title", "isindex", "base", "script", "style", "meta", "link", "object", NULL } ;
717 static const char* const hr_depr[] = { "align", "noshade", "size", "width", NULL } ;
718 static const char* const version_attr[] = { "version", NULL } ;
719 static const char* const html_content[] = { "head", "body", "frameset", NULL } ;
720 …c", "frameborder", "marginwidth", "marginheight", "scrolling", "align", "height", "width", NULL } ;
721 …ar* const img_attrs[] = { ATTRS, "longdesc", "name", "height", "width", "usemap", "ismap", NULL } ;
722 … "name", "palette", "pluginspace", "pluginurl", "src", "type", "units", "vspace", "width", NULL } ;
723 …, "ismap", "tabindex", "accesskey", "onfocus", "onblur", "onselect", "onchange", "accept", NULL } ;
724 static const char* const prompt_attrs[] = { COREATTRS, I18N, "prompt", NULL } ;
725 static const char* const label_attrs[] = { ATTRS, "for", "accesskey", "onfocus", "onblur", NULL } ;
726 static const char* const legend_attrs[] = { ATTRS, "accesskey", NULL } ;
727 static const char* const align_attr[] = { "align", NULL } ;
728 …onst link_attrs[] = { ATTRS, "charset", "href", "hreflang", "type", "rel", "rev", "media", NULL } ;
729 static const char* const map_contents[] = { BLOCK, "area", NULL } ;
730 static const char* const name_attr[] = { "name", NULL } ;
731 static const char* const action_attr[] = { "action", NULL } ;
732 static const char* const blockli_elt[] = { BLOCK, "li", NULL } ;
733 static const char* const meta_attrs[] = { I18N, "http-equiv", "name", "scheme", "charset", NULL } ;
734 static const char* const content_attr[] = { "content", NULL } ;
735 static const char* const type_attr[] = { "type", NULL } ;
736 static const char* const noframes_content[] = { "body", FLOW MODIFIER, NULL } ;
737 static const char* const object_contents[] = { FLOW, "param", NULL } ;
738 …"type", "codetype", "archive", "standby", "height", "width", "usemap", "name", "tabindex", NULL } ;
739 static const char* const object_depr[] = { "align", "border", "hspace", "vspace", NULL } ;
740 static const char* const ol_attrs[] = { "type", "compact", "start", NULL} ;
741 static const char* const option_elt[] = { "option", NULL } ;
742 static const char* const optgroup_attrs[] = { ATTRS, "disabled", NULL } ;
743 static const char* const option_attrs[] = { ATTRS, "disabled", "label", "selected", "value", NULL }…
744 static const char* const param_attrs[] = { "id", "value", "valuetype", "type", NULL } ;
745 static const char* const width_attr[] = { "width", NULL } ;
746 …", "i", "b", "u", "s", "strike", "a", "br", "script", "map", "q", "span", "bdo", "iframe", NULL } ;
747 static const char* const script_attrs[] = { "charset", "src", "defer", "event", "for", NULL } ;
748 static const char* const language_attr[] = { "language", NULL } ;
749 static const char* const select_content[] = { "optgroup", "option", NULL } ;
750 …TTRS, "name", "size", "multiple", "disabled", "tabindex", "onfocus", "onblur", "onchange", NULL } ;
751 static const char* const style_attrs[] = { I18N, "media", "title", NULL } ;
752 …mmary", "width", "border", "frame", "rules", "cellspacing", "cellpadding", "datapagesize", NULL } ;
753 static const char* const table_depr[] = { "align", "bgcolor", NULL } ;
754 …* const table_contents[] = { "caption", "col", "colgroup", "thead", "tfoot", "tbody", "tr", NULL} ;
755 static const char* const tr_elt[] = { "tr", NULL } ;
756 static const char* const talign_attrs[] = { ATTRS, CELLHALIGN, CELLVALIGN, NULL} ;
757 static const char* const th_td_depr[] = { "nowrap", "bgcolor", "width", "height", NULL } ;
758 …{ ATTRS, "abbr", "axis", "headers", "scope", "rowspan", "colspan", CELLHALIGN, CELLVALIGN, NULL } ;
759 …sabled", "readonly", "tabindex", "accesskey", "onfocus", "onblur", "onselect", "onchange", NULL } ;
760 static const char* const tr_contents[] = { "th", "td", NULL } ;
761 static const char* const bgcolor_attr[] = { "bgcolor", NULL } ;
762 static const char* const li_elt[] = { "li", NULL } ;
763 static const char* const ul_depr[] = { "type", "compact", NULL} ;
764 static const char* const dir_attr[] = { "dir", NULL} ;
771 DECL html_inline , NULL , DECL a_attrs , DECL target_attr, NULL
774 DECL html_inline , NULL , DECL html_attrs, NULL, NULL
777 DECL html_inline , NULL , DECL html_attrs, NULL, NULL
780 DECL inline_p , NULL , DECL html_attrs, NULL, NULL
783 DECL flow_param , NULL , NULL , DECL applet_attrs, NULL
786 EMPTY , NULL , DECL area_attrs , DECL target_attr, DECL alt_attr
789 DECL html_inline , NULL , DECL html_attrs, NULL, NULL
792 EMPTY , NULL , NULL , DECL target_attr, DECL href_attrs
795 EMPTY , NULL , NULL, DECL basefont_attrs, NULL
798 DECL html_inline , NULL , DECL core_i18n_attrs, NULL, DECL dir_attr
801 DECL html_inline , NULL , DECL html_attrs, NULL, NULL
804 DECL html_flow , NULL , DECL quote_attrs , NULL, NULL
807 DECL body_contents , "div" , DECL body_attrs, DECL body_depr, NULL
810 EMPTY , NULL , DECL core_attrs, DECL clear_attrs , NULL
813 DECL html_flow MODIFIER , NULL , DECL button_attrs, NULL, NULL
816 DECL html_inline , NULL , DECL html_attrs, NULL, NULL
819 DECL html_flow , NULL , NULL, DECL html_attrs, NULL
822 DECL html_inline , NULL , DECL html_attrs, NULL, NULL
825 DECL html_inline , NULL , DECL html_attrs, NULL, NULL
828 EMPTY , NULL , DECL col_attrs , NULL, NULL
831 DECL col_elt , "col" , DECL col_attrs , NULL, NULL
834 DECL html_flow , NULL , DECL html_attrs, NULL, NULL
837 DECL html_flow , NULL , DECL edit_attrs , NULL, NULL
840 DECL html_inline , NULL , DECL html_attrs, NULL, NULL
843 DECL blockli_elt, "li" , NULL, DECL compact_attrs, NULL
846 DECL html_flow, NULL, DECL html_attrs, DECL align_attr, NULL
849 DECL dl_contents , "dd" , DECL html_attrs, DECL compact_attr, NULL
852 DECL html_inline, NULL, DECL html_attrs, NULL, NULL
855 DECL html_inline, NULL, DECL html_attrs, NULL, NULL
858 EMPTY, NULL, DECL embed_attrs, NULL, NULL
861 DECL fieldset_contents , NULL, DECL html_attrs, NULL, NULL
864 DECL html_inline, NULL, NULL, DECL font_attrs, NULL
870 EMPTY, NULL, NULL, DECL frame_attrs, NULL
873 DECL frameset_contents, "noframes" , NULL , DECL frameset_attrs, NULL
876 DECL html_inline, NULL, DECL html_attrs, DECL align_attr, NULL
879 DECL html_inline, NULL, DECL html_attrs, DECL align_attr, NULL
882 DECL html_inline, NULL, DECL html_attrs, DECL align_attr, NULL
885 DECL html_inline, NULL, DECL html_attrs, DECL align_attr, NULL
888 DECL html_inline, NULL, DECL html_attrs, DECL align_attr, NULL
891 DECL html_inline, NULL, DECL html_attrs, DECL align_attr, NULL
894 DECL head_contents, NULL, DECL head_attrs, NULL, NULL
897 EMPTY, NULL, DECL html_attrs, DECL hr_depr, NULL
900 DECL html_content , NULL , DECL i18n_attrs, DECL version_attr, NULL
903 DECL html_inline, NULL, DECL html_attrs, NULL, NULL
906 DECL html_flow, NULL, NULL, DECL iframe_attrs, NULL
909 EMPTY, NULL, DECL img_attrs, DECL align_attr, DECL src_alt_attrs
912 EMPTY, NULL, DECL input_attrs , DECL align_attr, NULL
915 DECL html_flow, NULL, DECL edit_attrs, NULL, NULL
918 EMPTY, NULL, NULL, DECL prompt_attrs, NULL
921 DECL html_inline, NULL, DECL html_attrs, NULL, NULL
924 DECL html_inline MODIFIER, NULL, DECL label_attrs , NULL, NULL
927 DECL html_inline, NULL, DECL legend_attrs , DECL align_attr, NULL
930 DECL html_flow, NULL, DECL html_attrs, NULL, NULL
933 EMPTY, NULL, DECL link_attrs, DECL target_attr, NULL
936 DECL map_contents , NULL, DECL html_attrs , NULL, DECL name_attr
939 DECL blockli_elt , NULL, NULL, DECL compact_attrs, NULL
942 EMPTY, NULL, DECL meta_attrs , NULL , DECL content_attr
945 DECL noframes_content, "body" , DECL html_attrs, NULL, NULL
948 DECL html_flow, "div", DECL html_attrs, NULL, NULL
951 DECL object_contents , "div" , DECL object_attrs, DECL object_depr, NULL
954 DECL li_elt , "li" , DECL html_attrs, DECL ol_attrs, NULL
957 DECL option_elt , "option", DECL optgroup_attrs, NULL, DECL label_attr
960 DECL html_pcdata, NULL, DECL option_attrs, NULL, NULL
963 DECL html_inline, NULL, DECL html_attrs, DECL align_attr, NULL
966 EMPTY, NULL, DECL param_attrs, NULL, DECL name_attr
969 DECL pre_content, NULL, DECL html_attrs, DECL width_attr, NULL
972 DECL html_inline, NULL, DECL quote_attrs, NULL, NULL
975 DECL html_inline, NULL, NULL, DECL html_attrs, NULL
978 DECL html_inline, NULL, DECL html_attrs, NULL, NULL
981 DECL html_cdata, NULL, DECL script_attrs, DECL language_attr, DECL type_attr
984 DECL select_content, NULL, DECL select_attrs, NULL, NULL
987 DECL html_inline, NULL, DECL html_attrs, NULL, NULL
990 DECL html_inline, NULL, DECL html_attrs, NULL, NULL
993 DECL html_inline, NULL, NULL, DECL html_attrs, NULL
996 DECL html_inline, NULL, DECL html_attrs, NULL, NULL
999 DECL html_cdata, NULL, DECL style_attrs, NULL, DECL type_attr
1002 DECL html_inline, NULL, DECL html_attrs, NULL, NULL
1005 DECL html_inline, NULL, DECL html_attrs, NULL, NULL
1008 DECL table_contents , "tr" , DECL table_attrs , DECL table_depr, NULL
1011 DECL tr_elt , "tr" , DECL talign_attrs, NULL, NULL
1014 DECL html_flow, NULL, DECL th_td_attr, DECL th_td_depr, NULL
1017 DECL html_pcdata, NULL, DECL textarea_attrs, NULL, DECL rows_cols_attr
1020 DECL tr_elt , "tr" , DECL talign_attrs, NULL, NULL
1023 DECL html_flow, NULL, DECL th_td_attr, DECL th_td_depr, NULL
1026 DECL tr_elt , "tr" , DECL talign_attrs, NULL, NULL
1029 DECL html_pcdata, NULL, DECL i18n_attrs, NULL, NULL
1032 DECL tr_contents , "td" , DECL talign_attrs, DECL bgcolor_attr, NULL
1035 DECL html_inline, NULL, DECL html_attrs, NULL, NULL
1038 DECL html_inline, NULL, NULL, DECL html_attrs, NULL
1041 DECL li_elt , "li" , DECL html_attrs, DECL ul_depr, NULL
1044 DECL html_inline, NULL, DECL html_attrs, NULL, NULL
1054 "listing", "xmp", "head", NULL,
1055 "head", "p", NULL,
1056 "title", "p", NULL,
1057 "body", "head", "style", "link", "title", "p", NULL,
1058 "frameset", "head", "style", "link", "title", "p", NULL,
1060 "pre", "listing", "xmp", "head", "li", NULL,
1061 "hr", "p", "head", NULL,
1062 "h1", "p", "head", NULL,
1063 "h2", "p", "head", NULL,
1064 "h3", "p", "head", NULL,
1065 "h4", "p", "head", NULL,
1066 "h5", "p", "head", NULL,
1067 "h6", "p", "head", NULL,
1068 "dir", "p", "head", NULL,
1069 "address", "p", "head", "ul", NULL,
1070 "pre", "p", "head", "ul", NULL,
1071 "listing", "p", "head", NULL,
1072 "xmp", "p", "head", NULL,
1073 "blockquote", "p", "head", NULL,
1075 "xmp", "head", NULL,
1077 "head", "dd", NULL,
1079 "head", "dt", NULL,
1081 "listing", "xmp", NULL,
1082 "ol", "p", "head", "ul", NULL,
1083 "menu", "p", "head", "ul", NULL,
1084 "p", "p", "head", "h1", "h2", "h3", "h4", "h5", "h6", FONTSTYLE, NULL,
1085 "div", "p", "head", NULL,
1086 "noscript", "p", NULL,
1087 "center", "font", "b", "i", "p", "head", NULL,
1088 "a", "a", "head", NULL,
1089 "caption", "p", NULL,
1090 "colgroup", "caption", "colgroup", "col", "p", NULL,
1091 "col", "caption", "col", "p", NULL,
1093 "listing", "xmp", "a", NULL,
1094 "th", "th", "td", "p", "span", "font", "a", "b", "i", "u", NULL,
1095 "td", "th", "td", "p", "span", "font", "a", "b", "i", "u", NULL,
1096 "tr", "th", "td", "tr", "caption", "col", "colgroup", "p", NULL,
1097 "thead", "caption", "col", "colgroup", NULL,
1099 "tbody", "p", NULL,
1101 "tfoot", "tbody", "p", NULL,
1102 "optgroup", "option", NULL,
1103 "option", "option", NULL,
1105 "pre", "listing", "xmp", "a", NULL,
1107 "tt", "head", NULL,
1108 "i", "head", NULL,
1109 "b", "head", NULL,
1110 "u", "head", NULL,
1111 "s", "head", NULL,
1112 "strike", "head", NULL,
1113 "big", "head", NULL,
1114 "small", "head", NULL,
1116 "em", "head", NULL,
1117 "strong", "head", NULL,
1118 "dfn", "head", NULL,
1119 "code", "head", NULL,
1120 "samp", "head", NULL,
1121 "kbd", "head", NULL,
1122 "var", "head", NULL,
1123 "cite", "head", NULL,
1124 "abbr", "head", NULL,
1125 "acronym", "head", NULL,
1128 "img", "head", NULL,
1132 "font", "head", NULL,
1134 "br", "head", NULL,
1136 "map", "head", NULL,
1137 "q", "head", NULL,
1138 "sub", "head", NULL,
1139 "sup", "head", NULL,
1140 "span", "head", NULL,
1141 "bdo", "head", NULL,
1142 "iframe", "head", NULL,
1143 NULL
1156 NULL
1210 {NULL, 100} /* Default priority */
1235 for (indx = 0;indx < 100;indx ++) htmlStartCloseIndex[indx] = NULL; in htmlInitAutoClose()
1237 while ((htmlStartClose[i] != NULL) && (indx < 100 - 1)) { in htmlInitAutoClose()
1239 while (htmlStartClose[i] != NULL) i++; in htmlInitAutoClose()
1262 return(NULL); in htmlTagLookup()
1275 while ((htmlEndPriority[i].name != NULL) && in htmlGetEndPriority()
1298 const char **closed = NULL; in htmlCheckAutoClose()
1306 if (closed == NULL) in htmlCheckAutoClose()
1314 while (htmlStartClose[i] != NULL) { in htmlCheckAutoClose()
1357 if ((info != NULL) && (info->endTag == 3)) { in htmlAutoCloseOnClose()
1362 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlAutoCloseOnClose()
1382 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlAutoCloseOnEnd()
1403 while ((newtag != NULL) && (ctxt->name != NULL) && in htmlAutoClose()
1405 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlAutoClose()
1409 if (newtag == NULL) { in htmlAutoClose()
1413 while ((newtag == NULL) && (ctxt->name != NULL) && in htmlAutoClose()
1417 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlAutoClose()
1440 if (elem == NULL) return(1); in htmlAutoCloseTag()
1444 while (child != NULL) { in htmlAutoCloseTag()
1466 if (elem == NULL) return(1); in htmlIsAutoClosed()
1468 while (child != NULL) { in htmlIsAutoClosed()
1496 if ((ctxt->sax != NULL) && (ctxt->sax->startElement != NULL)) in htmlCheckImplied()
1497 ctxt->sax->startElement(ctxt->userData, BAD_CAST"html", NULL); in htmlCheckImplied()
1517 if ((ctxt->sax != NULL) && (ctxt->sax->startElement != NULL)) in htmlCheckImplied()
1518 ctxt->sax->startElement(ctxt->userData, BAD_CAST"head", NULL); in htmlCheckImplied()
1536 if ((ctxt->sax != NULL) && (ctxt->sax->startElement != NULL)) in htmlCheckImplied()
1537 ctxt->sax->startElement(ctxt->userData, BAD_CAST"body", NULL); in htmlCheckImplied()
1557 if (ctxt == NULL) in htmlCheckParagraph()
1560 if (tag == NULL) { in htmlCheckParagraph()
1564 if ((ctxt->sax != NULL) && (ctxt->sax->startElement != NULL)) in htmlCheckParagraph()
1565 ctxt->sax->startElement(ctxt->userData, BAD_CAST"p", NULL); in htmlCheckParagraph()
1570 for (i = 0; htmlNoContentElements[i] != NULL; i++) { in htmlCheckParagraph()
1575 if ((ctxt->sax != NULL) && (ctxt->sax->startElement != NULL)) in htmlCheckParagraph()
1576 ctxt->sax->startElement(ctxt->userData, BAD_CAST"p", NULL); in htmlCheckParagraph()
1595 if (name == NULL) in htmlIsScriptAttribute()
1914 if (tmp == NULL) { \
1917 return(NULL); \
1942 return(NULL); in htmlEntityLookup()
1967 return(NULL); in htmlEntityValueLookup()
1996 if ((out == NULL) || (outlen == NULL) || (inlen == NULL)) return(-1); in UTF8ToHtml()
1997 if (in == NULL) { in UTF8ToHtml()
2052 if (ent == NULL) { in UTF8ToHtml()
2100 if ((out == NULL) || (outlen == NULL) || (inlen == NULL) || (in == NULL)) in htmlEncodeEntities()
2151 if (ent == NULL) { in htmlEncodeEntities()
2190 if (input == NULL) { in htmlNewInputStream()
2192 return(NULL); in htmlNewInputStream()
2195 input->filename = NULL; in htmlNewInputStream()
2196 input->directory = NULL; in htmlNewInputStream()
2197 input->base = NULL; in htmlNewInputStream()
2198 input->cur = NULL; in htmlNewInputStream()
2199 input->buf = NULL; in htmlNewInputStream()
2202 input->buf = NULL; in htmlNewInputStream()
2203 input->free = NULL; in htmlNewInputStream()
2204 input->version = NULL; in htmlNewInputStream()
2253 if (ctxt->name == NULL) in areBlanks()
2261 if (xmlStrEqual(ctxt->name, BAD_CAST "body") && ctxt->myDoc != NULL) { in areBlanks()
2263 if (dtd != NULL && dtd->ExternalID != NULL) { in areBlanks()
2270 if (ctxt->node == NULL) return(0); in areBlanks()
2274 if (lastChild == NULL) { in areBlanks()
2276 (ctxt->node->content != NULL)) return(0); in areBlanks()
2316 if (cur == NULL) { in htmlNewDocNoDtD()
2317 htmlErrMemory(NULL, "HTML document creation failed\n"); in htmlNewDocNoDtD()
2318 return(NULL); in htmlNewDocNoDtD()
2323 cur->version = NULL; in htmlNewDocNoDtD()
2324 cur->intSubset = NULL; in htmlNewDocNoDtD()
2326 cur->name = NULL; in htmlNewDocNoDtD()
2327 cur->children = NULL; in htmlNewDocNoDtD()
2328 cur->extSubset = NULL; in htmlNewDocNoDtD()
2329 cur->oldNs = NULL; in htmlNewDocNoDtD()
2330 cur->encoding = NULL; in htmlNewDocNoDtD()
2333 cur->ids = NULL; in htmlNewDocNoDtD()
2334 cur->refs = NULL; in htmlNewDocNoDtD()
2335 cur->_private = NULL; in htmlNewDocNoDtD()
2338 if ((ExternalID != NULL) || in htmlNewDocNoDtD()
2339 (URI != NULL)) in htmlNewDocNoDtD()
2355 if ((URI == NULL) && (ExternalID == NULL)) in htmlNewDoc()
2395 (CUR != ':') && (CUR != '.')) return(NULL); in htmlParseHTMLName()
2429 (NXT(1) != ':')) return(NULL); in htmlParseHTMLName_nonInvasive()
2500 return(NULL); in htmlParseNameComplex()
2534 xmlChar *buffer = NULL; in htmlParseHTMLAttribute()
2536 xmlChar *out = NULL; in htmlParseHTMLAttribute()
2537 const xmlChar *name = NULL; in htmlParseHTMLAttribute()
2538 const xmlChar *cur = NULL; in htmlParseHTMLAttribute()
2546 if (buffer == NULL) { in htmlParseHTMLAttribute()
2548 return(NULL); in htmlParseHTMLAttribute()
2585 if (name == NULL) { in htmlParseHTMLAttribute()
2593 } else if (ent == NULL) { in htmlParseHTMLAttribute()
2675 const htmlEntityDesc * ent = NULL; in htmlParseEntityRef()
2677 if (str != NULL) *str = NULL; in htmlParseEntityRef()
2678 if ((ctxt == NULL) || (ctxt->input == NULL)) return(NULL); in htmlParseEntityRef()
2683 if (name == NULL) { in htmlParseEntityRef()
2685 "htmlParseEntityRef: no name\n", NULL, NULL); in htmlParseEntityRef()
2689 if (str != NULL) in htmlParseEntityRef()
2696 if (ent != NULL) /* OK that's ugly !!! */ in htmlParseEntityRef()
2701 NULL, NULL); in htmlParseEntityRef()
2702 if (str != NULL) in htmlParseEntityRef()
2724 xmlChar *ret = NULL; in htmlParseAttValue()
2731 "AttValue: \" expected\n", NULL, NULL); in htmlParseAttValue()
2739 "AttValue: ' expected\n", NULL, NULL); in htmlParseAttValue()
2747 if (ret == NULL) { in htmlParseAttValue()
2749 "AttValue: no value found\n", NULL, NULL); in htmlParseAttValue()
2769 xmlChar *ret = NULL; in htmlParseSystemLiteral()
2778 "Unfinished SystemLiteral\n", NULL, NULL); in htmlParseSystemLiteral()
2790 "Unfinished SystemLiteral\n", NULL, NULL); in htmlParseSystemLiteral()
2797 " or ' expected\n", NULL, NULL); in htmlParseSystemLiteral()
2817 xmlChar *ret = NULL; in htmlParsePubidLiteral()
2827 "Unfinished PubidLiteral\n", NULL, NULL); in htmlParsePubidLiteral()
2839 "Unfinished PubidLiteral\n", NULL, NULL); in htmlParsePubidLiteral()
2846 "PubidLiteral \" or ' expected\n", NULL, NULL); in htmlParsePubidLiteral()
2902 ctxt->name, NULL); in htmlParseScript()
2914 if (ctxt->sax->cdataBlock!= NULL) { in htmlParseScript()
2919 } else if (ctxt->sax->characters != NULL) { in htmlParseScript()
2937 if ((nbchar != 0) && (ctxt->sax != NULL) && (!ctxt->disableSAX)) { in htmlParseScript()
2938 if (ctxt->sax->cdataBlock!= NULL) { in htmlParseScript()
2943 } else if (ctxt->sax->characters != NULL) { in htmlParseScript()
2982 if ((ctxt->sax != NULL) && (!ctxt->disableSAX)) { in htmlParseCharData()
2985 if (ctxt->sax->characters != NULL) in htmlParseCharData()
2988 if (ctxt->sax->ignorableWhitespace != NULL) in htmlParseCharData()
2994 if (ctxt->sax->characters != NULL) in htmlParseCharData()
3020 if ((ctxt->sax != NULL) && (!ctxt->disableSAX)) { in htmlParseCharData()
3023 if (ctxt->sax->characters != NULL) in htmlParseCharData()
3026 if (ctxt->sax->ignorableWhitespace != NULL) in htmlParseCharData()
3032 if (ctxt->sax->characters != NULL) in htmlParseCharData()
3064 xmlChar *URI = NULL; in htmlParseExternalID()
3072 "Space required after 'SYSTEM'\n", NULL, NULL); in htmlParseExternalID()
3076 if (URI == NULL) { in htmlParseExternalID()
3078 "htmlParseExternalID: SYSTEM, no URI\n", NULL, NULL); in htmlParseExternalID()
3086 "Space required after 'PUBLIC'\n", NULL, NULL); in htmlParseExternalID()
3090 if (*publicID == NULL) { in htmlParseExternalID()
3093 NULL, NULL); in htmlParseExternalID()
3113 xmlChar *buf = NULL; in htmlParsePI()
3135 if (target != NULL) { in htmlParsePI()
3143 (ctxt->sax->processingInstruction != NULL)) in htmlParsePI()
3145 target, NULL); in htmlParsePI()
3150 if (buf == NULL) { in htmlParsePI()
3151 htmlErrMemory(ctxt, NULL); in htmlParsePI()
3158 "ParsePI: PI %s space expected\n", target, NULL); in htmlParsePI()
3168 if (tmp == NULL) { in htmlParsePI()
3169 htmlErrMemory(ctxt, NULL); in htmlParsePI()
3193 "ParsePI: PI %s never end ...\n", target, NULL); in htmlParsePI()
3201 (ctxt->sax->processingInstruction != NULL)) in htmlParsePI()
3208 "PI is not started correctly", NULL, NULL); in htmlParsePI()
3224 xmlChar *buf = NULL; in htmlParseComment()
3243 if (buf == NULL) { in htmlParseComment()
3262 if (tmp == NULL) { in htmlParseComment()
3286 "Comment not terminated \n<!--%.50s\n", buf, NULL); in htmlParseComment()
3290 if ((ctxt->sax != NULL) && (ctxt->sax->comment != NULL) && in htmlParseComment()
3313 if ((ctxt == NULL) || (ctxt->input == NULL)) { in htmlParseCharRef()
3316 NULL, NULL); in htmlParseCharRef()
3332 NULL, NULL); in htmlParseCharRef()
3347 NULL, NULL); in htmlParseCharRef()
3356 "htmlParseCharRef: invalid value\n", NULL, NULL); in htmlParseCharRef()
3385 xmlChar *ExternalID = NULL; in htmlParseDocTypeDecl()
3386 xmlChar *URI = NULL; in htmlParseDocTypeDecl()
3399 if (name == NULL) { in htmlParseDocTypeDecl()
3402 NULL, NULL); in htmlParseDocTypeDecl()
3421 "DOCTYPE improperly terminated\n", NULL, NULL); in htmlParseDocTypeDecl()
3429 if ((ctxt->sax != NULL) && (ctxt->sax->internalSubset != NULL) && in htmlParseDocTypeDecl()
3436 if (URI != NULL) xmlFree(URI); in htmlParseDocTypeDecl()
3437 if (ExternalID != NULL) xmlFree(ExternalID); in htmlParseDocTypeDecl()
3464 xmlChar *val = NULL; in htmlParseAttribute()
3466 *value = NULL; in htmlParseAttribute()
3468 if (name == NULL) { in htmlParseAttribute()
3470 "error parsing attribute name\n", NULL, NULL); in htmlParseAttribute()
3471 return(NULL); in htmlParseAttribute()
3501 if ((ctxt == NULL) || (encoding == NULL) || in htmlCheckEncodingDirect()
3506 if (ctxt->input->encoding != NULL) in htmlCheckEncodingDirect()
3509 if (encoding != NULL) { in htmlCheckEncodingDirect()
3515 if (ctxt->input->encoding != NULL) in htmlCheckEncodingDirect()
3528 (ctxt->input->buf != NULL) && in htmlCheckEncodingDirect()
3529 (ctxt->input->buf->encoder == NULL)) { in htmlCheckEncodingDirect()
3532 NULL, NULL); in htmlCheckEncodingDirect()
3542 if (handler != NULL) { in htmlCheckEncodingDirect()
3548 encoding, NULL); in htmlCheckEncodingDirect()
3552 if ((ctxt->input->buf != NULL) && in htmlCheckEncodingDirect()
3553 (ctxt->input->buf->encoder != NULL) && in htmlCheckEncodingDirect()
3554 (ctxt->input->buf->raw != NULL) && in htmlCheckEncodingDirect()
3555 (ctxt->input->buf->buffer != NULL)) { in htmlCheckEncodingDirect()
3568 NULL, NULL); in htmlCheckEncodingDirect()
3593 if (encoding != NULL) { in htmlCheckEncoding()
3619 const xmlChar *content = NULL; in htmlCheckMeta()
3621 if ((ctxt == NULL) || (atts == NULL)) in htmlCheckMeta()
3626 while (att != NULL) { in htmlCheckMeta()
3628 if ((value != NULL) && (!xmlStrcasecmp(att, BAD_CAST"http-equiv")) in htmlCheckMeta()
3631 else if ((value != NULL) && (!xmlStrcasecmp(att, BAD_CAST"charset"))) in htmlCheckMeta()
3633 else if ((value != NULL) && (!xmlStrcasecmp(att, BAD_CAST"content"))) in htmlCheckMeta()
3637 if ((http) && (content != NULL)) in htmlCheckMeta()
3674 if ((ctxt == NULL) || (ctxt->input == NULL)) { in htmlParseStartTag()
3676 "htmlParseStartTag: context error\n", NULL, NULL); in htmlParseStartTag()
3689 if (name == NULL) { in htmlParseStartTag()
3692 NULL, NULL); in htmlParseStartTag()
3719 name, NULL); in htmlParseStartTag()
3727 name, NULL); in htmlParseStartTag()
3737 name, NULL); in htmlParseStartTag()
3757 if (attname != NULL) { in htmlParseStartTag()
3765 "Attribute %s redefined\n", attname, NULL); in htmlParseStartTag()
3766 if (attvalue != NULL) in htmlParseStartTag()
3775 if (atts == NULL) { in htmlParseStartTag()
3779 if (atts == NULL) { in htmlParseStartTag()
3780 htmlErrMemory(ctxt, NULL); in htmlParseStartTag()
3781 if (attvalue != NULL) in htmlParseStartTag()
3793 if (n == NULL) { in htmlParseStartTag()
3794 htmlErrMemory(ctxt, NULL); in htmlParseStartTag()
3795 if (attvalue != NULL) in htmlParseStartTag()
3805 atts[nbatts] = NULL; in htmlParseStartTag()
3806 atts[nbatts + 1] = NULL; in htmlParseStartTag()
3809 if (attvalue != NULL) in htmlParseStartTag()
3824 NULL, NULL); in htmlParseStartTag()
3840 if ((ctxt->sax != NULL) && (ctxt->sax->startElement != NULL)) { in htmlParseStartTag()
3844 ctxt->sax->startElement(ctxt->userData, name, NULL); in htmlParseStartTag()
3848 if (atts != NULL) { in htmlParseStartTag()
3850 if (atts[i] != NULL) in htmlParseStartTag()
3882 "htmlParseEndTag: '</' not found\n", NULL, NULL); in htmlParseEndTag()
3888 if (name == NULL) in htmlParseEndTag()
3896 "End tag : expected '>'\n", NULL, NULL); in htmlParseEndTag()
3931 "Unexpected end tag : %s\n", name, NULL); in htmlParseEndTag()
3948 if ((ctxt->name != NULL) && (!xmlStrEqual(ctxt->name, name))) { in htmlParseEndTag()
3959 if ((oldname != NULL) && (xmlStrEqual(oldname, name))) { in htmlParseEndTag()
3960 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlParseEndTag()
4007 if ((ctxt->sax != NULL) && (ctxt->sax->characters != NULL)) in htmlParseReference()
4011 if (name == NULL) { in htmlParseReference()
4013 if ((ctxt->sax != NULL) && (ctxt->sax->characters != NULL)) in htmlParseReference()
4017 if ((ent == NULL) || !(ent->value > 0)) { in htmlParseReference()
4019 if ((ctxt->sax != NULL) && (ctxt->sax->characters != NULL)) { in htmlParseReference()
4044 if ((ctxt->sax != NULL) && (ctxt->sax->characters != NULL)) in htmlParseReference()
4079 ((currentNode != NULL) || (ctxt->nameNr == 0))) { in htmlParseContent()
4080 if (currentNode != NULL) in htmlParseContent()
4091 if (name == NULL) { in htmlParseContent()
4094 NULL, NULL); in htmlParseContent()
4099 if (currentNode != NULL) in htmlParseContent()
4104 if (ctxt->name != NULL) { in htmlParseContent()
4119 if (currentNode != NULL) xmlFree(currentNode); in htmlParseContent()
4140 BAD_CAST "DOCTYPE" , NULL); in htmlParseContent()
4190 if (ctxt->node != NULL) { in htmlParseContent()
4193 NULL, NULL); in htmlParseContent()
4200 if (currentNode != NULL) xmlFree(currentNode); in htmlParseContent()
4218 xmlChar *currentNode = NULL; in htmlParseElement()
4225 if ((ctxt == NULL) || (ctxt->input == NULL)) { in htmlParseElement()
4227 "htmlParseElement: context error\n", NULL, NULL); in htmlParseElement()
4243 if ((failed == -1) || (name == NULL)) { in htmlParseElement()
4253 if (info == NULL) { in htmlParseElement()
4255 "Tag %s invalid\n", name, NULL); in htmlParseElement()
4263 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlParseElement()
4273 "Couldn't find end of Start Tag %s\n", name, NULL); in htmlParseElement()
4299 if ((info != NULL) && (info->empty)) { in htmlParseElement()
4300 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlParseElement()
4321 if ( currentNode != NULL && ctxt->record_info ) { in htmlParseElement()
4332 if (currentNode != NULL) in htmlParseElement()
4341 if ( ctxt->node != NULL && ctxt->record_info ) { in htmlParserFinishElementParsing()
4372 if ((ctxt == NULL) || (ctxt->input == NULL)) { in htmlParseElementInternal()
4374 "htmlParseElementInternal: context error\n", NULL, NULL); in htmlParseElementInternal()
4390 if ((failed == -1) || (name == NULL)) { in htmlParseElementInternal()
4400 if (info == NULL) { in htmlParseElementInternal()
4402 "Tag %s invalid\n", name, NULL); in htmlParseElementInternal()
4410 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlParseElementInternal()
4420 "Couldn't find end of Start Tag %s\n", name, NULL); in htmlParseElementInternal()
4439 if ((info != NULL) && (info->empty)) { in htmlParseElementInternal()
4440 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlParseElementInternal()
4479 ((currentNode != NULL) || (ctxt->nameNr == 0))) { in htmlParseContentInternal()
4480 if (currentNode != NULL) in htmlParseContentInternal()
4493 if (name == NULL) { in htmlParseContentInternal()
4496 NULL, NULL); in htmlParseContentInternal()
4502 if (currentNode != NULL) in htmlParseContentInternal()
4510 if (ctxt->name != NULL) { in htmlParseContentInternal()
4526 if (currentNode != NULL) xmlFree(currentNode); in htmlParseContentInternal()
4550 BAD_CAST "DOCTYPE" , NULL); in htmlParseContentInternal()
4574 if (currentNode != NULL) xmlFree(currentNode); in htmlParseContentInternal()
4604 if (ctxt->node != NULL) { in htmlParseContentInternal()
4607 NULL, NULL); in htmlParseContentInternal()
4614 if (currentNode != NULL) xmlFree(currentNode); in htmlParseContentInternal()
4627 if (ctxt != NULL) in __htmlParseContent()
4652 if ((ctxt == NULL) || (ctxt->input == NULL)) { in htmlParseDocument()
4654 "htmlParseDocument: context error\n", NULL, NULL); in htmlParseDocument()
4689 "Document is empty\n", NULL, NULL); in htmlParseDocument()
4747 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL)) in htmlParseDocument()
4750 if ((!(ctxt->options & HTML_PARSE_NODEFDTD)) && (ctxt->myDoc != NULL)) { in htmlParseDocument()
4752 if (dtd == NULL) in htmlParseDocument()
4783 if (ctxt == NULL) return(-1); in htmlInitParserCtxt()
4787 if (ctxt->dict == NULL) { in htmlInitParserCtxt()
4788 htmlErrMemory(NULL, "htmlInitParserCtxt: out of memory\n"); in htmlInitParserCtxt()
4792 if (sax == NULL) { in htmlInitParserCtxt()
4793 htmlErrMemory(NULL, "htmlInitParserCtxt: out of memory\n"); in htmlInitParserCtxt()
4802 if (ctxt->inputTab == NULL) { in htmlInitParserCtxt()
4803 htmlErrMemory(NULL, "htmlInitParserCtxt: out of memory\n"); in htmlInitParserCtxt()
4806 ctxt->input = NULL; in htmlInitParserCtxt()
4811 ctxt->input = NULL; in htmlInitParserCtxt()
4812 ctxt->version = NULL; in htmlInitParserCtxt()
4813 ctxt->encoding = NULL; in htmlInitParserCtxt()
4819 if (ctxt->nodeTab == NULL) { in htmlInitParserCtxt()
4820 htmlErrMemory(NULL, "htmlInitParserCtxt: out of memory\n"); in htmlInitParserCtxt()
4823 ctxt->node = NULL; in htmlInitParserCtxt()
4826 ctxt->input = NULL; in htmlInitParserCtxt()
4831 ctxt->node = NULL; in htmlInitParserCtxt()
4835 if (ctxt->nameTab == NULL) { in htmlInitParserCtxt()
4836 htmlErrMemory(NULL, "htmlInitParserCtxt: out of memory\n"); in htmlInitParserCtxt()
4839 ctxt->name = NULL; in htmlInitParserCtxt()
4842 ctxt->node = NULL; in htmlInitParserCtxt()
4845 ctxt->input = NULL; in htmlInitParserCtxt()
4850 ctxt->name = NULL; in htmlInitParserCtxt()
4852 ctxt->nodeInfoTab = NULL; in htmlInitParserCtxt()
4856 if (sax == NULL) ctxt->sax = (xmlSAXHandlerPtr) &htmlDefaultSAXHandler; in htmlInitParserCtxt()
4862 ctxt->myDoc = NULL; in htmlInitParserCtxt()
4875 ctxt->catalogs = NULL; in htmlInitParserCtxt()
4908 if (ctxt == NULL) { in htmlNewParserCtxt()
4909 htmlErrMemory(NULL, "NewParserCtxt: out of memory\n"); in htmlNewParserCtxt()
4910 return(NULL); in htmlNewParserCtxt()
4915 return(NULL); in htmlNewParserCtxt()
4935 if (buffer == NULL) in htmlCreateMemoryParserCtxt()
4936 return(NULL); in htmlCreateMemoryParserCtxt()
4938 return(NULL); in htmlCreateMemoryParserCtxt()
4941 if (ctxt == NULL) in htmlCreateMemoryParserCtxt()
4942 return(NULL); in htmlCreateMemoryParserCtxt()
4945 if (buf == NULL) return(NULL); in htmlCreateMemoryParserCtxt()
4948 if (input == NULL) { in htmlCreateMemoryParserCtxt()
4950 return(NULL); in htmlCreateMemoryParserCtxt()
4953 input->filename = NULL; in htmlCreateMemoryParserCtxt()
4977 if (cur == NULL) in htmlCreateDocParserCtxt()
4978 return(NULL); in htmlCreateDocParserCtxt()
4981 if (ctxt == NULL) in htmlCreateDocParserCtxt()
4982 return(NULL); in htmlCreateDocParserCtxt()
4984 if (encoding != NULL) { in htmlCreateDocParserCtxt()
4988 if (ctxt->input->encoding != NULL) in htmlCreateDocParserCtxt()
5001 (const xmlChar *) encoding, NULL); in htmlCreateDocParserCtxt()
5008 if (handler != NULL) { in htmlCreateDocParserCtxt()
5013 (const xmlChar *) encoding, NULL); in htmlCreateDocParserCtxt()
5058 if (in == NULL) in htmlParseLookupSequence()
5068 if (in->buf == NULL) { in htmlParseLookupSequence()
5185 if (in == NULL) in htmlParseLookupChars()
5195 if (in->buf == NULL) { in htmlParseLookupChars()
5307 if (in == NULL) break; in htmlParseTryOrFinish()
5308 if (in->buf == NULL) in htmlParseTryOrFinish()
5319 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL)) in htmlParseTryOrFinish()
5344 if (in->buf == NULL) in htmlParseTryOrFinish()
5386 if (in->buf == NULL) in htmlParseTryOrFinish()
5459 if (in->buf == NULL) in htmlParseTryOrFinish()
5500 if (in->buf == NULL) in htmlParseTryOrFinish()
5546 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL)) in htmlParseTryOrFinish()
5605 (name == NULL)) { in htmlParseTryOrFinish()
5615 if (info == NULL) { in htmlParseTryOrFinish()
5617 "Tag %s invalid\n", name, NULL); in htmlParseTryOrFinish()
5625 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlParseTryOrFinish()
5641 name, NULL); in htmlParseTryOrFinish()
5665 if ((info != NULL) && (info->empty)) { in htmlParseTryOrFinish()
5666 if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL)) in htmlParseTryOrFinish()
5691 if ((ctxt->sax != NULL) && (ctxt->sax->characters != NULL)) in htmlParseTryOrFinish()
5699 if (ctxt->sax != NULL) { in htmlParseTryOrFinish()
5702 if (ctxt->sax->characters != NULL) in htmlParseTryOrFinish()
5706 if (ctxt->sax->ignorableWhitespace != NULL) in htmlParseTryOrFinish()
5712 if (ctxt->sax->characters != NULL) in htmlParseTryOrFinish()
5768 BAD_CAST "DOCTYPE" , NULL); in htmlParseTryOrFinish()
5840 if (ctxt->node != NULL) { in htmlParseTryOrFinish()
5843 NULL, NULL); in htmlParseTryOrFinish()
5872 NULL, NULL); in htmlParseTryOrFinish()
5883 NULL, NULL); in htmlParseTryOrFinish()
5894 NULL, NULL); in htmlParseTryOrFinish()
5905 NULL, NULL); in htmlParseTryOrFinish()
5916 NULL, NULL); in htmlParseTryOrFinish()
5927 NULL, NULL); in htmlParseTryOrFinish()
5938 NULL, NULL); in htmlParseTryOrFinish()
5949 NULL, NULL); in htmlParseTryOrFinish()
5960 NULL, NULL); in htmlParseTryOrFinish()
5971 NULL, NULL); in htmlParseTryOrFinish()
5990 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL)) in htmlParseTryOrFinish()
5994 if ((!(ctxt->options & HTML_PARSE_NODEFDTD)) && (ctxt->myDoc != NULL) && in htmlParseTryOrFinish()
5999 if (dtd == NULL) in htmlParseTryOrFinish()
6025 if ((ctxt == NULL) || (ctxt->input == NULL)) { in htmlParseChunk()
6027 "htmlParseChunk: context error\n", NULL, NULL); in htmlParseChunk()
6030 if ((size > 0) && (chunk != NULL) && (ctxt->input != NULL) && in htmlParseChunk()
6031 (ctxt->input->buf != NULL) && (ctxt->instate != XML_PARSER_EOF)) { in htmlParseChunk()
6052 if ((ctxt->input != NULL) && ctxt->input->buf != NULL) { in htmlParseChunk()
6054 if ((in->encoder != NULL) && (in->buffer != NULL) && in htmlParseChunk()
6055 (in->raw != NULL)) { in htmlParseChunk()
6063 "encoder error\n", NULL, NULL); in htmlParseChunk()
6079 if ((ctxt->sax) && (ctxt->sax->endDocument != NULL)) in htmlParseChunk()
6119 if (buf == NULL) return(NULL); in htmlCreatePushParserCtxt()
6122 if (ctxt == NULL) { in htmlCreatePushParserCtxt()
6124 return(NULL); in htmlCreatePushParserCtxt()
6128 if (sax != NULL) { in htmlCreatePushParserCtxt()
6132 if (ctxt->sax == NULL) { in htmlCreatePushParserCtxt()
6135 return(NULL); in htmlCreatePushParserCtxt()
6138 if (user_data != NULL) in htmlCreatePushParserCtxt()
6141 if (filename == NULL) { in htmlCreatePushParserCtxt()
6142 ctxt->directory = NULL; in htmlCreatePushParserCtxt()
6148 if (inputStream == NULL) { in htmlCreatePushParserCtxt()
6151 return(NULL); in htmlCreatePushParserCtxt()
6154 if (filename == NULL) in htmlCreatePushParserCtxt()
6155 inputStream->filename = NULL; in htmlCreatePushParserCtxt()
6164 if ((size > 0) && (chunk != NULL) && (ctxt->input != NULL) && in htmlCreatePushParserCtxt()
6165 (ctxt->input->buf != NULL)) { in htmlCreatePushParserCtxt()
6204 if (cur == NULL) return(NULL); in htmlSAXParseDoc()
6208 if (ctxt == NULL) return(NULL); in htmlSAXParseDoc()
6209 if (sax != NULL) { in htmlSAXParseDoc()
6210 if (ctxt->sax != NULL) xmlFree (ctxt->sax); in htmlSAXParseDoc()
6217 if (sax != NULL) { in htmlSAXParseDoc()
6218 ctxt->sax = NULL; in htmlSAXParseDoc()
6219 ctxt->userData = NULL; in htmlSAXParseDoc()
6238 return(htmlSAXParseDoc(cur, encoding, NULL, NULL)); in htmlParseDoc()
6262 if (filename == NULL) in htmlCreateFileParserCtxt()
6263 return(NULL); in htmlCreateFileParserCtxt()
6266 if (ctxt == NULL) { in htmlCreateFileParserCtxt()
6267 return(NULL); in htmlCreateFileParserCtxt()
6270 if (canonicFilename == NULL) { in htmlCreateFileParserCtxt()
6272 if (xmlDefaultSAXHandler.error != NULL) { in htmlCreateFileParserCtxt()
6273 xmlDefaultSAXHandler.error(NULL, "out of memory\n"); in htmlCreateFileParserCtxt()
6277 return(NULL); in htmlCreateFileParserCtxt()
6280 inputStream = xmlLoadExternalEntity(canonicFilename, NULL, ctxt); in htmlCreateFileParserCtxt()
6282 if (inputStream == NULL) { in htmlCreateFileParserCtxt()
6284 return(NULL); in htmlCreateFileParserCtxt()
6328 htmlSAXHandlerPtr oldsax = NULL; in htmlSAXParseFile()
6333 if (ctxt == NULL) return(NULL); in htmlSAXParseFile()
6334 if (sax != NULL) { in htmlSAXParseFile()
6343 if (sax != NULL) { in htmlSAXParseFile()
6345 ctxt->userData = NULL; in htmlSAXParseFile()
6365 return(htmlSAXParseFile(filename, encoding, NULL, NULL)); in htmlParseFile()
6526 if (ctxt == NULL) in htmlCtxtReset()
6532 while ((input = inputPop(ctxt)) != NULL) { /* Non consuming */ in htmlCtxtReset()
6536 ctxt->input = NULL; in htmlCtxtReset()
6539 if (ctxt->spaceTab != NULL) { in htmlCtxtReset()
6543 ctxt->space = NULL; in htmlCtxtReset()
6548 ctxt->node = NULL; in htmlCtxtReset()
6551 ctxt->name = NULL; in htmlCtxtReset()
6554 ctxt->version = NULL; in htmlCtxtReset()
6556 ctxt->encoding = NULL; in htmlCtxtReset()
6558 ctxt->directory = NULL; in htmlCtxtReset()
6560 ctxt->extSubURI = NULL; in htmlCtxtReset()
6562 ctxt->extSubSystem = NULL; in htmlCtxtReset()
6563 if (ctxt->myDoc != NULL) in htmlCtxtReset()
6565 ctxt->myDoc = NULL; in htmlCtxtReset()
6589 ctxt->catalogs = NULL; in htmlCtxtReset()
6592 if (ctxt->attsDefault != NULL) { in htmlCtxtReset()
6594 ctxt->attsDefault = NULL; in htmlCtxtReset()
6596 if (ctxt->attsSpecial != NULL) { in htmlCtxtReset()
6597 xmlHashFree(ctxt->attsSpecial, NULL); in htmlCtxtReset()
6598 ctxt->attsSpecial = NULL; in htmlCtxtReset()
6615 if (ctxt == NULL) in htmlCtxtUseOptions()
6619 ctxt->sax->warning = NULL; in htmlCtxtUseOptions()
6620 ctxt->vctxt.warning = NULL; in htmlCtxtUseOptions()
6625 ctxt->sax->error = NULL; in htmlCtxtUseOptions()
6626 ctxt->vctxt.error = NULL; in htmlCtxtUseOptions()
6627 ctxt->sax->fatalError = NULL; in htmlCtxtUseOptions()
6693 if (encoding != NULL) { in htmlDoRead()
6697 if (hdlr != NULL) { in htmlDoRead()
6699 if (ctxt->input->encoding != NULL) in htmlDoRead()
6704 if ((URL != NULL) && (ctxt->input != NULL) && in htmlDoRead()
6705 (ctxt->input->filename == NULL)) in htmlDoRead()
6709 ctxt->myDoc = NULL; in htmlDoRead()
6712 (ret != NULL) && in htmlDoRead()
6714 ctxt->dict = NULL; in htmlDoRead()
6736 if (cur == NULL) in htmlReadDoc()
6737 return (NULL); in htmlReadDoc()
6740 ctxt = htmlCreateDocParserCtxt(cur, NULL); in htmlReadDoc()
6741 if (ctxt == NULL) in htmlReadDoc()
6742 return (NULL); in htmlReadDoc()
6763 if (ctxt == NULL) in htmlReadFile()
6764 return (NULL); in htmlReadFile()
6765 return (htmlDoRead(ctxt, NULL, NULL, options, 0)); in htmlReadFile()
6787 if (ctxt == NULL) in htmlReadMemory()
6788 return (NULL); in htmlReadMemory()
6790 if (ctxt->sax != NULL) in htmlReadMemory()
6814 return (NULL); in htmlReadFd()
6819 if (input == NULL) in htmlReadFd()
6820 return (NULL); in htmlReadFd()
6822 if (ctxt == NULL) { in htmlReadFd()
6824 return (NULL); in htmlReadFd()
6827 if (stream == NULL) { in htmlReadFd()
6830 return (NULL); in htmlReadFd()
6857 if (ioread == NULL) in htmlReadIO()
6858 return (NULL); in htmlReadIO()
6863 if (input == NULL) { in htmlReadIO()
6864 if (ioclose != NULL) in htmlReadIO()
6866 return (NULL); in htmlReadIO()
6869 if (ctxt == NULL) { in htmlReadIO()
6871 return (NULL); in htmlReadIO()
6874 if (stream == NULL) { in htmlReadIO()
6877 return (NULL); in htmlReadIO()
6902 if (cur == NULL) in htmlCtxtReadDoc()
6903 return (NULL); in htmlCtxtReadDoc()
6904 if (ctxt == NULL) in htmlCtxtReadDoc()
6905 return (NULL); in htmlCtxtReadDoc()
6911 if (stream == NULL) { in htmlCtxtReadDoc()
6912 return (NULL); in htmlCtxtReadDoc()
6936 if (filename == NULL) in htmlCtxtReadFile()
6937 return (NULL); in htmlCtxtReadFile()
6938 if (ctxt == NULL) in htmlCtxtReadFile()
6939 return (NULL); in htmlCtxtReadFile()
6944 stream = xmlLoadExternalEntity(filename, NULL, ctxt); in htmlCtxtReadFile()
6945 if (stream == NULL) { in htmlCtxtReadFile()
6946 return (NULL); in htmlCtxtReadFile()
6949 return (htmlDoRead(ctxt, NULL, encoding, options, 1)); in htmlCtxtReadFile()
6973 if (ctxt == NULL) in htmlCtxtReadMemory()
6974 return (NULL); in htmlCtxtReadMemory()
6975 if (buffer == NULL) in htmlCtxtReadMemory()
6976 return (NULL); in htmlCtxtReadMemory()
6982 if (input == NULL) { in htmlCtxtReadMemory()
6983 return(NULL); in htmlCtxtReadMemory()
6987 if (stream == NULL) { in htmlCtxtReadMemory()
6989 return(NULL); in htmlCtxtReadMemory()
7017 return (NULL); in htmlCtxtReadFd()
7018 if (ctxt == NULL) in htmlCtxtReadFd()
7019 return (NULL); in htmlCtxtReadFd()
7026 if (input == NULL) in htmlCtxtReadFd()
7027 return (NULL); in htmlCtxtReadFd()
7029 if (stream == NULL) { in htmlCtxtReadFd()
7031 return (NULL); in htmlCtxtReadFd()
7061 if (ioread == NULL) in htmlCtxtReadIO()
7062 return (NULL); in htmlCtxtReadIO()
7063 if (ctxt == NULL) in htmlCtxtReadIO()
7064 return (NULL); in htmlCtxtReadIO()
7071 if (input == NULL) { in htmlCtxtReadIO()
7072 if (ioclose != NULL) in htmlCtxtReadIO()
7074 return (NULL); in htmlCtxtReadIO()
7077 if (stream == NULL) { in htmlCtxtReadIO()
7079 return (NULL); in htmlCtxtReadIO()