Opened 13 years ago
Closed 13 years ago
#4345 closed defect (wontfix)
dojo.parser.parse is too simplistic in the case of arrays
Reported by: | guest | Owned by: | bill |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Parser | Version: | 0.9 |
Keywords: | Cc: | [email protected]… | |
Blocked By: | Blocking: |
Description
I'm looking for a way to pass an array of strings into a widget. Some of these contain commas, which messes with the parser... A working example (dojo 0.3, being updated to 0.9) are the captions in the custom slideshow widget here: http://www.davaz.com/en/personal/family/pretty
thanks for your Feedback
Hannes
Attachments (1)
Change History (3)
Changed 13 years ago by
Attachment: | dojo.parse.patch added |
---|
comment:1 Changed 13 years ago by
Component: | General → Parser |
---|---|
Owner: | changed from anonymous to bill |
We've tried to stay away from using the array feature, frankly. It usually seems more consistent with HTML to pass in lists as child tags instead, e.g. divs with content. Another option is to encode the commas.
comment:2 Changed 13 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Right, I don't want to use the array feature for anything more complicated than numbers or file names. See Combobox.js or maybe the Slider code for examples of how to embed lists of names as child tags.
A possible fix