Hi,
Attached is a trivial (one-line) patch to lisp/xml.el, which fixes a bug
in its handling of text nodes broken by a comment.
Here's a demonstration of the bug:
(require 'xml)
(defun ted-parse-xml-from-string (string)
(with-temp-buffer
(insert string)
(xml-parse-region (point-min) (point-max))))
(ted-parse-xml-from-string "yo yo")
;; returns ((n nil "yo yo"))
(ted-parse-xml-from-string "yo yo")
;; returns ((n nil 111 121 32 32 111 121))
;; expected ((n nil "yo yo"))
The bug is in a call to `append'. After applying this patch, we get the
value we expect:
(ted-parse-xml-from-string "yo yo")
;; returns ((n nil "yo yo"))
Ted
--
Edward O'Connor
hober0@gmail.com
Ense petit placidam sub libertate quietem.