From c34d0ae9cc125f90030392b089265f5de1819636 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Thu, 12 Sep 2024 23:50:20 +0200 Subject: [PATCH] html: Deprecate htmlIsBooleanAttr --- HTMLtree.c | 2 ++ include/libxml/HTMLtree.h | 1 + python/generator.py | 1 + 3 files changed, 4 insertions(+) diff --git a/HTMLtree.c b/HTMLtree.c index ab5c816a..06741c21 100644 --- a/HTMLtree.c +++ b/HTMLtree.c @@ -311,6 +311,8 @@ static const char* const htmlBooleanAttrs[] = { * htmlIsBooleanAttr: * @name: the name of the attribute to check * + * DEPRECATED: Internal function, don't use. + * * Determine if a given attribute is a boolean attribute. * * returns: false if the attribute is not boolean, true otherwise. diff --git a/include/libxml/HTMLtree.h b/include/libxml/HTMLtree.h index 8e1ba90e..065254f4 100644 --- a/include/libxml/HTMLtree.h +++ b/include/libxml/HTMLtree.h @@ -133,6 +133,7 @@ XMLPUBFUN void #endif /* LIBXML_OUTPUT_ENABLED */ +XML_DEPRECATED XMLPUBFUN int htmlIsBooleanAttr (const xmlChar *name); diff --git a/python/generator.py b/python/generator.py index 2d329207..0d175d2d 100755 --- a/python/generator.py +++ b/python/generator.py @@ -295,6 +295,7 @@ deprecated_funcs = { 'htmlHandleOmittedElem': True, 'htmlInitAutoClose': True, 'htmlIsAutoClosed': True, + 'htmlIsBooleanAttr': True, 'htmlParseCharRef': True, 'htmlParseElement': True, 'namePop': True,