diff options
| author | Gerd Moellmann | 2001-09-24 09:26:53 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-09-24 09:26:53 +0000 |
| commit | f58176e6fee6685419e44ccbb07c69d228211651 (patch) | |
| tree | 574b6663e65221f9e249915bc8816aa746481628 | |
| parent | 4e6277d8de6bcfec581c7e9be07d85a2df46afe9 (diff) | |
| download | emacs-f58176e6fee6685419e44ccbb07c69d228211651.tar.gz emacs-f58176e6fee6685419e44ccbb07c69d228211651.zip | |
(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>.
| -rw-r--r-- | lisp/xml.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/xml.el b/lisp/xml.el index ac27b776b95..23d4e5d25b1 100644 --- a/lisp/xml.el +++ b/lisp/xml.el | |||
| @@ -290,7 +290,7 @@ Leaves the point on the first non-blank character after the tag." | |||
| 290 | ;; Do we have a string between quotes (or double-quotes), | 290 | ;; Do we have a string between quotes (or double-quotes), |
| 291 | ;; or a simple word ? | 291 | ;; or a simple word ? |
| 292 | (unless (looking-at "\"\\([^\"]+\\)\"") | 292 | (unless (looking-at "\"\\([^\"]+\\)\"") |
| 293 | (unless (looking-at "'\\([^\"]+\\)'") | 293 | (unless (looking-at "'\\([^']+\\)'") |
| 294 | (error "XML: Attribute values must be given between quotes"))) | 294 | (error "XML: Attribute values must be given between quotes"))) |
| 295 | 295 | ||
| 296 | ;; Each attribute must be unique within a given element | 296 | ;; Each attribute must be unique within a given element |