Commit aba7ce77 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(xml-parse-tag): Return (foo nil) rather than (foo nil "")

for <foo/>, to make it behave like <foo></foo>.
parent e2514283
......@@ -274,9 +274,7 @@ Returns one of:
(if (looking-at "/>")
(forward-char 2)
;; Fixme: Inconsistent with the nil content returned from
;; `<tag></tag>'.
(nreverse (cons '("") children)))
(nreverse children))
;; is this a valid start tag ?
(if (eq (char-after) ?>)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment