- HTMLparser.c HTMLtree.[ch] SAX.c testHTML.c tree.c: fixed HTML
  support for SCRIPT and STYLE with help from Bjorn Reese
- test/HTML/* result/HTML/*: added simple testcase and updated
  the existing ones.
Daniel
diff --git a/testHTML.c b/testHTML.c
index 1aff967..541620e 100644
--- a/testHTML.c
+++ b/testHTML.c
@@ -421,6 +421,27 @@
 }
 
 /**
+ * cdataDebug:
+ * @ctxt:  An XML parser context
+ * @ch:  a xmlChar string
+ * @len: the number of xmlChar
+ *
+ * receiving some cdata chars from the parser.
+ * Question: how much at a time ???
+ */
+void
+cdataDebug(void *ctx, const xmlChar *ch, int len)
+{
+    unsigned char output[40];
+    int inlen = len, outlen = 30;
+
+    htmlEncodeEntities(output, &outlen, ch, &inlen, 0);
+    output[outlen] = 0;
+
+    fprintf(stdout, "SAX.cdata(%s, %d)\n", output, len);
+}
+
+/**
  * referenceDebug:
  * @ctxt:  An XML parser context
  * @name:  The entity name
@@ -572,6 +593,8 @@
     errorDebug,
     fatalErrorDebug,
     getParameterEntityDebug,
+    cdataDebug,
+    NULL
 };
 
 xmlSAXHandlerPtr debugSAXHandler = &debugSAXHandlerStruct;