Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#3800 closed defect (fixed)

parser does not allow spaces in json attributes?

Reported by: Adam Peller Owned by: Adam Peller
Priority: high Milestone: 0.9
Component: Parser Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description

In dijit/tests/form/test_validate.html, the "time1" widget only works if I specify   to include a space in the timePattern attribute.

Change History (4)

comment:1 Changed 12 years ago by bill

Owner: changed from bill to haysmark

comment:2 Changed 12 years ago by haysmark

Owner: changed from haysmark to Adam Peller

Adam you need to put quotes around your attribute values, otherwise the native browser parser, e.g:

var attrValue=node.getAttribute(attrName)

thinks the constraints object stops at the space. {} is not really a value delimiter to browsers, but "" is.

comment:3 Changed 12 years ago by Adam Peller

Resolution: fixed
Status: newclosed

(In [10292]) Quote all attributes. Fixes #3800

comment:4 Changed 12 years ago by Adam Peller

Milestone: 1.00.9
Note: See TracTickets for help on using tickets.