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

Deprecate old HTML SAX API

This commit is contained in:
Nick Wellnhofer
2022-08-25 20:18:16 +02:00
parent 51035c539e
commit a308c0cdf7
4 changed files with 20 additions and 3 deletions

View File

@ -6402,6 +6402,8 @@ htmlCreatePushParserCtxt(htmlSAXHandlerPtr sax, void *user_data,
* @sax: the SAX handler block
* @userData: if using SAX, this pointer will be provided on callbacks.
*
* DEPRECATED: Use htmlNewSAXParserCtxt and htmlCtxtReadDoc.
*
* Parse an HTML in-memory document. If sax is not NULL, use the SAX callbacks
* to handle parse events. If sax is NULL, fallback to the default DOM
* behavior and return a tree.
@ -6523,6 +6525,8 @@ htmlCreateFileParserCtxt(const char *filename, const char *encoding)
* @sax: the SAX handler block
* @userData: if using SAX, this pointer will be provided on callbacks.
*
* DEPRECATED: Use htmlNewSAXParserCtxt and htmlCtxtReadFile.
*
* parse an HTML file and build a tree. Automatic support for ZLIB/Compress
* compressed document is provided by default if found at compile-time.
* It use the given SAX function block to handle the parsing callback.