Re: [xml] Support of HTML v5 parsing
- From: Yuriy Ustushenko <yoreek yahoo com>
- To: veillard redhat com
- Cc: libxml gnome <xml gnome org>
- Subject: Re: [xml] Support of HTML v5 parsing
- Date: Wed, 08 Jul 2015 12:55:31 +0300
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]