#1970 closed defect (fixed)
ValidationTextbox eats all text after quote
Reported by: | Owned by: | bill | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Widgets | Version: | 0.4 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
There is some sort of bug in the Dojo widget parser which mangles form fields. To see this in action, try the simple changes to demos/widget/Form.html
posted by "Klang":
<input type="text" name="name" class="medium" value="xxxx'yyyy" dojoType="ValidationTextBox" required="true" ucfirst="true" />
If the value
string contains multiple quotes, the string is hacked up into a bunch of DOM nodes with no content.
Martin
Attachments (2)
Change History (5)
Changed 14 years ago by
Attachment: | DomWidget.diff added |
---|
Changed 14 years ago by
Attachment: | DomWidget.2.diff added |
---|
SVN diff which corrects the problem.... I think....
comment:1 Changed 14 years ago by
Component: | Parser → Widgets |
---|---|
Owner: | changed from dylan to bill |
Status: | new → assigned |
The problem isn't in the parser, or in DomWidget?. The value is read in fine, and ValidationTextBox?.value has the correct value. The problem is that when said value is substituted into the template:
<input dojoAttachPoint='textbox' ... value='${this.value}' ...>
... we need to substitute the escaped value into the template, or use a different mechanism to set the value (just setting inputNode.value = foo.value).
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
SVN diff which corrects the problem with single quotes (but still not with double quotes)