Opened 8 years ago

Closed 8 years ago

#13560 closed defect (fixed)

ColorPalette: fails in markup with value attribute

Reported by: Adam Peller Owned by: bill
Priority: high Milestone: 1.7
Component: Dijit Version: 1.6.1
Keywords: Cc: cindyskach
Blocked By: Blocking:

Description

A mysterious one... on trunk, Cindy noticed that this works:

<div dojoType="dijit.ColorPalette" data-dojo-props='value:"#0000ff"'></div>

while this fails:

<div dojoType="dijit.ColorPalette" value="#0000ff"></div>

Seems like a parser bug?

Attachments (1)

test_ColorPalette2.html (2.5 KB) - added by Adam Peller 8 years ago.
standard test file with additional tests at the bottom, from Cindy

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by Adam Peller

Attachment: test_ColorPalette2.html added

standard test file with additional tests at the bottom, from Cindy

comment:1 Changed 8 years ago by bill

Milestone: tbd1.7
Status: newassigned

Looks like it's never worked, not a parser bug but just a problem with ColorPalette's declaration of the value attribute.

comment:2 Changed 8 years ago by bill

Component: ParserDijit
Summary: ColorPalette fails in markup with value attributeColorPalette: fails in markup with value attribute

comment:3 Changed 8 years ago by bill

Resolution: fixed
Status: assignedclosed

In [26042]:

Make value "" rather than null so that parser knows it's a string. Otherwise it's interpreted as JSON. Fixes #13560 !strict.

Note: See TracTickets for help on using tickets.