For example, passing zen_id_safe('Übercart') would return "-bercart" which is not a valid ID in HTML. Valid IDs must start with A-Za-z.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | id-safe.patch | 1.55 KB | johnalbin |
| id-safe.patch | 1.52 KB | johnalbin |
For example, passing zen_id_safe('Übercart') would return "-bercart" which is not a valid ID in HTML. Valid IDs must start with A-Za-z.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | id-safe.patch | 1.55 KB | johnalbin |
| id-safe.patch | 1.52 KB | johnalbin |
Comments
Comment #1
johnalbinI realized the original reason it prepended "n" to IDs was that zen_id_safe only did that when the first char was numeric.
Prepending "n" to "-bercart" doesn't make much sense. Changing it to prepend "id".
Comment #2
johnalbinCommitted to HEAD and DRUPAL-5
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.