diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2003-09-03 13:28:32 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2003-09-03 13:28:32 +0000 |
commit | 40412cda44b2689b509a8665fb9d76e1a260e28f (patch) | |
tree | e5685f62c2c7a5e4647b6174f385aa506b7b0e3a /HTMLparser.c | |
parent | 4b1577f14adf070259221726083c6e2106afb201 (diff) | |
download | android_external_libxml2-40412cda44b2689b509a8665fb9d76e1a260e28f.tar.gz android_external_libxml2-40412cda44b2689b509a8665fb9d76e1a260e28f.tar.bz2 android_external_libxml2-40412cda44b2689b509a8665fb9d76e1a260e28f.zip |
when creating a DOCTYPE use "html" lowercase by default instead of "HTML"
* HTMLparser.c: when creating a DOCTYPE use "html" lowercase
by default instead of "HTML"
* parser.c xmlreader.c: optimization, gain a few % parsing speed by
avoiding calls to "areBlanks" when not needed.
* include/libxml/parser.h include/libxml/tree.h: some structure
extensions for future work on using per-document dictionaries.
Daniel
Diffstat (limited to 'HTMLparser.c')
-rw-r--r-- | HTMLparser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/HTMLparser.c b/HTMLparser.c index 7c404740..90e2460e 100644 --- a/HTMLparser.c +++ b/HTMLparser.c @@ -2137,7 +2137,7 @@ htmlNewDocNoDtD(const xmlChar *URI, const xmlChar *ExternalID) { cur->_private = NULL; if ((ExternalID != NULL) || (URI != NULL)) - xmlCreateIntSubset(cur, BAD_CAST "HTML", ExternalID, URI); + xmlCreateIntSubset(cur, BAD_CAST "html", ExternalID, URI); return(cur); } @@ -4002,7 +4002,7 @@ htmlParseDocument(htmlParserCtxtPtr ctxt) { dtd = xmlGetIntSubset(ctxt->myDoc); if (dtd == NULL) ctxt->myDoc->intSubset = - xmlCreateIntSubset(ctxt->myDoc, BAD_CAST "HTML", + xmlCreateIntSubset(ctxt->myDoc, BAD_CAST "html", BAD_CAST "-//W3C//DTD HTML 4.0 Transitional//EN", BAD_CAST "http://www.w3.org/TR/REC-html40/loose.dtd"); } @@ -5058,7 +5058,7 @@ done: dtd = xmlGetIntSubset(ctxt->myDoc); if (dtd == NULL) ctxt->myDoc->intSubset = - xmlCreateIntSubset(ctxt->myDoc, BAD_CAST "HTML", + xmlCreateIntSubset(ctxt->myDoc, BAD_CAST "html", BAD_CAST "-//W3C//DTD HTML 4.0 Transitional//EN", BAD_CAST "http://www.w3.org/TR/REC-html40/loose.dtd"); } |