1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

html: Deprecate AutoClose API

This commit is contained in:
Nick Wellnhofer
2024-09-12 23:12:01 +02:00
parent 188cad68a4
commit 6040785ac4
3 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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,

View File

@ -290,9 +290,11 @@ skip_impl = (
)
deprecated_funcs = {
'htmlAutoCloseTag': True,
'htmlDefaultSAXHandlerInit': True,
'htmlHandleOmittedElem': True,
'htmlInitAutoClose': True,
'htmlIsAutoClosed': True,
'htmlParseCharRef': True,
'htmlParseElement': True,
'namePop': True,