Opened 14 years ago

Closed 14 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:


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:

thanks for your Feedback


Attachments (1)

dojo.parse.patch (675 bytes) - added by guest 14 years ago.
A possible fix

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by guest

Attachment: dojo.parse.patch added

A possible fix

comment:1 Changed 14 years ago by Adam Peller

Component: GeneralParser
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 14 years ago by bill

Resolution: wontfix
Status: newclosed

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.

Note: See TracTickets for help on using tickets.