(xml-parse-attlist): Quotes around attributes must be the

same on each side.  Make sure we properly handle simple quotes.
From Daiki Ueno <ueno@unixuser.org>.
This commit is contained in:
Gerd Moellmann 2001-09-24 09:26:53 +00:00
parent 4e6277d8de
commit f58176e6fe

View file

@ -290,7 +290,7 @@ 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 "'\\([^']+\\)'")
(error "XML: Attribute values must be given between quotes")))
;; Each attribute must be unique within a given element