diff --git a/ChangeLog b/ChangeLog index daf5385e..2c6b078b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Apr 16 09:05:01 CEST 2007 Daniel Veillard + + * HTMLparser.c: change the way script/style are parsed to + not try to detect comments, reported by Mike Day + * result/HTML/doc3.*: affects the result of that test + Wed Apr 11 22:38:18 HKT 2007 William Brack * xmlregexp.c: small enhancement for quantifier range with diff --git a/HTMLparser.c b/HTMLparser.c index 304f7c47..8f2f7760 100644 --- a/HTMLparser.c +++ b/HTMLparser.c @@ -2678,23 +2678,7 @@ htmlParseScript(htmlParserCtxtPtr ctxt) { SHRINK; cur = CUR_CHAR(l); while (IS_CHAR_CH(cur)) { - if ((cur == '<') && (NXT(1) == '!') && (NXT(2) == '-') && - (NXT(3) == '-')) { - if ((nbchar != 0) && (ctxt->sax != NULL) && (!ctxt->disableSAX)) { - if (ctxt->sax->cdataBlock!= NULL) { - /* - * Insert as CDATA, which is the same as HTML_PRESERVE_NODE - */ - ctxt->sax->cdataBlock(ctxt->userData, buf, nbchar); - } else if (ctxt->sax->characters != NULL) { - ctxt->sax->characters(ctxt->userData, buf, nbchar); - } - } - nbchar = 0; - htmlParseComment(ctxt); - cur = CUR_CHAR(l); - continue; - } else if ((cur == '<') && (NXT(1) == '/')) { + if ((cur == '<') && (NXT(1) == '/')) { /* * One should break here, the specification is clear: * Authors should therefore escape ""); + document.write("42DF8478957377>"); } else if ((parseInt(navigator.appVersion) > 3) && (navigator.appName == "Netscape")) { document.write(" diff --git a/result/HTML/doc3.htm.err b/result/HTML/doc3.htm.err index 1e63bab2..cdf715a6 100644 --- a/result/HTML/doc3.htm.err +++ b/result/HTML/doc3.htm.err @@ -40,6 +40,18 @@ om/ad_static.asp?pid=2097&sid=1881&asid=7708"> ./test/HTML/doc3.htm:772: HTML parser error : Unexpected end tag : form archive = 3) - && (navigator.appName != "Netscape")) { - document.write(""); - } else if ((parseInt(navigator.appVersion) > 3) - && (navigator.appName == "Netscape")) { - document.write("