On 07/08/2015 07:10 AM, Daniel Veillard wrote:
that looks like a very good start, would have been better if the parser context didn't need tweaking as well as xmlDtd. Also I'm not sure about the way to detect HTML5:+ if (name != NULL && !xmlStrcasecmp(name, BAD_CAST "HTML")) { + if (ExternalID == NULL && ((SystemID == NULL) || + !xmlStrcasecmp(SystemID, BAD_CAST "about:legacy-compat"))) { + cur->html_schema = &html5Schema; seems a bit too inclusive, Looks like we would default to html5 each time there is an URI for the systemID, which a lot of HTML4 do.
I agree with you, but I have no good idea how to do it. Thanks for review. -- Yuriy Ustushenko _______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] https://mail.gnome.org/mailman/listinfo/xml
