Do not downcase string tags in HTML/XML artifacts
If the tag of an S-XML expression is given as a string that is a sign that the author actually does want to preserve the case. Downcasing should only be performed for symbol tags. An example of wanting to preserve the case is the "pubDate" tag in RSS feeds.
This commit is contained in:
parent
4aa3958c99
commit
f8ca135ff4
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@
|
||||||
(declare (type atom symbol)
|
(declare (type atom symbol)
|
||||||
(optimize (speed 3) (safety 0)))
|
(optimize (speed 3) (safety 0)))
|
||||||
(etypecase symbol
|
(etypecase symbol
|
||||||
(string (string-downcase symbol))
|
(string symbol)
|
||||||
(symbol (string-downcase (symbol-name symbol)))
|
(symbol (string-downcase (symbol-name symbol)))
|
||||||
(atom (string-downcase (princ-to-string symbol)))))
|
(atom (string-downcase (princ-to-string symbol)))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue