store the line numbder in element->content, may break some software, need

* DOCBparser.c HTMLparser.c HTMLtree.c SAX.c debugXML.c parser.c
  tree.c xpointer.c: store the line numbder in element->content,
  may break some software, need a configuration mechanism
Daniel
diff --git a/HTMLparser.c b/HTMLparser.c
index bcf4394..ea244f5 100644
--- a/HTMLparser.c
+++ b/HTMLparser.c
@@ -1782,7 +1782,8 @@
     if (ctxt->node == NULL) return(0);
     lastChild = xmlGetLastChild(ctxt->node);
     if (lastChild == NULL) {
-        if (ctxt->node->content != NULL) return(0);
+        if ((ctxt->node->type != XML_ELEMENT_NODE) &&
+            (ctxt->node->content != NULL)) return(0);
     } else if (xmlNodeIsText(lastChild)) {
         return(0);
     } else if (xmlStrEqual(lastChild->name, BAD_CAST"b")) {