* xml-parse-attlist should be more flexible in parsing attributes
@ 2002-12-04 19:40 mah
0 siblings, 0 replies; only message in thread
From: mah @ 2002-12-04 19:40 UTC (permalink / raw)
xml-parse-attlist fails to parse empty attributes.
Specifically, it will not parse
<element att="">stuff</element>
To fix, replace
(unless (looking-at "\"\\([^\"]+\\)\"")
(unless (looking-at "'\\([^']+\\)'")
(error "XML: Attribute values must be given between quotes")))
with
(unless (looking-at "\"\\([^\"]*\\)\"")
(unless (looking-at "'\\([^']*\\)'")
(error "XML: Attribute values must be given between quotes")))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-12-04 19:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-04 19:40 xml-parse-attlist should be more flexible in parsing attributes mah
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).