summaryrefslogtreecommitdiff
path: root/lisp/xml.el
diff options
context:
space:
mode:
authorShengHuo ZHU <zsh@cs.rochester.edu>2002-03-05 21:44:01 +0000
committerShengHuo ZHU <zsh@cs.rochester.edu>2002-03-05 21:44:01 +0000
commit01adac0d5da3fffc92d7a1419b43db8f88b64491 (patch)
treec3f62be68fb46c8ca26c2572c5786189997e8661 /lisp/xml.el
parent16e79fec78ee8ba56b2c67e727a4fc7b3b9a8377 (diff)
downloademacs-01adac0d5da3fffc92d7a1419b43db8f88b64491.tar.gz
* xml.el (xml-parse-attlist): Accept empty strings.
From Max Froumentin <mf@w3.org>.
Diffstat (limited to 'lisp/xml.el')
-rw-r--r--lisp/xml.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/xml.el b/lisp/xml.el
index d6d6d80efa9..a495721330f 100644
--- a/lisp/xml.el
+++ b/lisp/xml.el
@@ -288,8 +288,8 @@ Leaves the point on the first non-blank character after the tag."
;; 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