diff --git a/HTMLparser.c b/HTMLparser.c index bc4a6188..f62ef9d2 100644 --- a/HTMLparser.c +++ b/HTMLparser.c @@ -1454,6 +1454,8 @@ htmlAutoClose(htmlParserCtxtPtr ctxt, const xmlChar * newtag) * @name: The tag name * @elem: the HTML element * + * DEPRECATED: Internal function, don't use. + * * The HTML DTD allows a tag to implicitly close other tags. * The list is kept in htmlStartClose array. This function checks * if the element or one of it's children would autoclose the @@ -1481,6 +1483,8 @@ htmlAutoCloseTag(htmlDocPtr doc, const xmlChar *name, htmlNodePtr elem) { * @doc: the HTML document * @elem: the HTML element * + * DEPRECATED: Internal function, don't use. + * * The HTML DTD allows a tag to implicitly close other tags. * The list is kept in htmlStartClose array. This function checks * if a tag is autoclosed by one of it's child diff --git a/include/libxml/HTMLparser.h b/include/libxml/HTMLparser.h index 0900a2b8..116b0cf1 100644 --- a/include/libxml/HTMLparser.h +++ b/include/libxml/HTMLparser.h @@ -96,9 +96,11 @@ XMLPUBFUN const htmlEntityDesc * XMLPUBFUN const htmlEntityDesc * htmlEntityValueLookup(unsigned int value); +XML_DEPRECATED XMLPUBFUN int htmlIsAutoClosed(htmlDocPtr doc, htmlNodePtr elem); +XML_DEPRECATED XMLPUBFUN int htmlAutoCloseTag(htmlDocPtr doc, const xmlChar *name, diff --git a/python/generator.py b/python/generator.py index b54e16e3..2d329207 100755 --- a/python/generator.py +++ b/python/generator.py @@ -290,9 +290,11 @@ skip_impl = ( ) deprecated_funcs = { + 'htmlAutoCloseTag': True, 'htmlDefaultSAXHandlerInit': True, 'htmlHandleOmittedElem': True, 'htmlInitAutoClose': True, + 'htmlIsAutoClosed': True, 'htmlParseCharRef': True, 'htmlParseElement': True, 'namePop': True,