mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
html: Avoid HTML_PARSE_HTML5 clashing with XML_PARSE_NOENT
There are several users that pass invalid XML parser options to the HTML parser. Choose a value that is less likely to clash.
This commit is contained in:
@@ -5768,7 +5768,10 @@ htmlCtxtSetOptionsInternal(xmlParserCtxtPtr ctxt, int options, int keepMask)
|
||||
|
||||
ctxt->linenumbers = 1;
|
||||
|
||||
return(options & ~allMask);
|
||||
/*
|
||||
* Allow XML_PARSE_NOENT which many users set on the HTML parser.
|
||||
*/
|
||||
return(options & ~allMask & ~XML_PARSE_NOENT);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user