bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

xml.el incorrectly parses empty elements


From: Mark A. Hershberger
Subject: xml.el incorrectly parses empty elements
Date: Thu, 15 May 2003 01:53:04 -0500
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

xml.el parses

    <this/>       ----> (this nil (""))

And

    <this></this> ----> (this nil)

Folling patch fixes the first one to match the second.

*** xml.el.~1.7.4.1.~   Sat May  3 17:17:43 2003
--- xml.el      Thu May 15 01:45:46 2003
***************
*** 227,233 ****
          (progn
            (forward-char 2)
            (skip-chars-forward " \t\n")
!           (append children '("")))
  
        ;; is this a valid start tag ?
        (if (eq (char-after) ?>)
--- 227,233 ----
          (progn
            (forward-char 2)
            (skip-chars-forward " \t\n")
!           (append children nil))
  
        ;; is this a valid start tag ?
        (if (eq (char-after) ?>)


-- 
As long as you have mystery you have health; when you destroy mystery
you create morbidity.                        -- G.K. Chesterson




reply via email to

[Prev in Thread] Current Thread [Next in Thread]