Opened 13 years ago

Last modified 13 years ago

#5580 closed defect

InlineEditbox renderAsHtml logical error when set to true using textareas — at Initial Version

Reported by: guest Owned by:
Priority: high Milestone: 1.1
Component: Dijit Version: 1.0
Keywords: inlineeditbox renderashtml Cc:
Blocked By: Blocking:


In InlineEditBox?.js at line 129 the renderAsHtml flag is used to determine whether to replace characters for wrapping and such. The line looks like this:

var editValue =

(this.renderAsHtml ? this.value : this.value.replace(/s*

? s*/g,"").replace(/<br/?>/gi, " ").replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&"));

It appears to me that the true and false statements are in reverse order. The replacement characters occur if this.renderAsHtml == false when I believe the intent was to replace them if renderAsHtml is set to true. This causes textareas to destroy data in textareas wrapped in InlineEditBoxes?, as well as display them improperly.

Change History (0)

Note: See TracTickets for help on using tickets.