changeset 43739:373960858ccc

* xml.el (xml-parse-attlist): Accept empty strings. From Max Froumentin <mf@w3.org>.
author ShengHuo ZHU <zsh@cs.rochester.edu>
date Tue, 05 Mar 2002 21:44:01 +0000
parents c32d1082ee0e
children fa4e608c23c5
files lisp/ChangeLog lisp/xml.el
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue Mar 05 21:04:21 2002 +0000
+++ b/lisp/ChangeLog	Tue Mar 05 21:44:01 2002 +0000
@@ -1,3 +1,8 @@
+2002-03-05  ShengHuo ZHU  <zsh@cs.rochester.edu>
+
+	* xml.el (xml-parse-attlist): Accept empty strings.
+	From Max Froumentin <mf@w3.org>.
+
 2002-03-05  Eli Zaretskii  <eliz@is.elta.co.il>
 
 	* mouse.el (mouse-show-mark): Remove the no-highlight alternative:
--- a/lisp/xml.el	Tue Mar 05 21:04:21 2002 +0000
+++ b/lisp/xml.el	Tue Mar 05 21:44:01 2002 +0000
@@ -288,8 +288,8 @@
 
       ;; Do we have a string between quotes (or double-quotes),
       ;;  or a simple word ?
-      (unless (looking-at "\"\\([^\"]+\\)\"")
-	(unless (looking-at "'\\([^']+\\)'")
+      (unless (looking-at "\"\\([^\"]*\\)\"")
+	(unless (looking-at "'\\([^']*\\)'")
 	  (error "XML: Attribute values must be given between quotes")))
 
       ;; Each attribute must be unique within a given element