[libxml2] Also register HTML document nodes



commit 96dc7f4ae6f3f7cdf213aefefaac253b34be73aa
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Tue Feb 1 16:15:51 2022 +0100

    Also register HTML document nodes
    
    Fixes #196.

 HTMLparser.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/HTMLparser.c b/HTMLparser.c
index 82859b0b..3e8a1657 100644
--- a/HTMLparser.c
+++ b/HTMLparser.c
@@ -2517,6 +2517,8 @@ htmlNewDocNoDtD(const xmlChar *URI, const xmlChar *ExternalID) {
     if ((ExternalID != NULL) ||
        (URI != NULL))
        xmlCreateIntSubset(cur, BAD_CAST "html", ExternalID, URI);
+    if ((__xmlRegisterCallbacks) && (xmlRegisterNodeDefaultValue))
+       xmlRegisterNodeDefaultValue((xmlNodePtr)cur);
     return(cur);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]