]> git.eshelyaron.com Git - emacs.git/commitdiff
* xml.c (make_dom): Return comments, too.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Wed, 20 Jul 2011 19:58:46 +0000 (21:58 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Wed, 20 Jul 2011 19:58:46 +0000 (21:58 +0200)
src/ChangeLog
src/xml.c

index e098e536efbdabe3601a7d207defebfcbd9fc5c6..86062435a5d93b416283f7aba5604b351a84e143 100644 (file)
@@ -1,3 +1,7 @@
+2011-07-20  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * xml.c (make_dom): Return comments, too.
+
 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
 
        Port to OpenBSD.
index 63041c96b24ff524332a3eb846d3c43c95a479ae..6dd52638b7de315a9f8c45632b1d26df16ac97e5 100644 (file)
--- a/src/xml.c
+++ b/src/xml.c
@@ -71,6 +71,14 @@ make_dom (xmlNode *node)
       else
        return Qnil;
     }
+  else if (node->type == XML_COMMENT_NODE)
+    {
+      if (node->content)
+       return list3 (intern ("comment"), Qnil,
+                     build_string ((char *) node->content));
+      else
+       return Qnil;
+    }
   else
     return Qnil;
 }