Opened 7 years ago

Closed 7 years ago

#14765 closed defect (fixed)

dojox.mobile.SpinWheelSlot getValue returns escaped values

Reported by: ykami Owned by: ykami
Priority: undecided Milestone: 1.8
Component: DojoX Mobile Version: 1.7.1
Keywords: Cc:
Blocked By: Blocking:

Description

The current method "getValue" on ‪dojox.mobile.SpinWheelSlot does not return the given value if that contains characters being translated to HTML, e.g. & != &.

If, e.g., a SpinWheel is declared like this:

<div id="cargoCommoditySpinWheel" dojoType="dojox.mobile.SpinWheel">
	<div id="cargoCommoditySpinWheelSlot" 
		dojoType="dojox.mobile.SpinWheelSlot"
		labels="['&#8211;','Agriculture &amp; Forestry','Something else']"
		style="text-align: left; font-size: 10px; width: 100%; height: 100px;">
	</div>
</div>

then getValue does not return the original value.

Change History (2)

comment:1 Changed 7 years ago by ykami

Milestone: tbd1.8
Status: newassigned

comment:2 Changed 7 years ago by ykami

Resolution: fixed
Status: assignedclosed

In [27825]:

Fixes #14765 !strict Take return value from this.items, not from innerHTML. Also, deprecated setValue/getValue, and added set() and get().

Note: See TracTickets for help on using tickets.