Ticket #4327 (closed defect: fixed)
SingleQuote in content using iframe transport fails
| Reported by: | guest | Owned by: | jburke |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.0 |
| Component: | General | Version: | 0.9 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Having a single quote in a property of content passed to bind posts only text before single quote in IE.
This is caused by way the hidden input is created in IE:
var tn;
if(dojo.isIE){
tn = dojo.doc.createElement("<input type='hidden' name='"+x+"' value='"+content[x]+"'>");
fn.appendChild(tn);
}else{
tn = dojo.doc.createElement("input");
fn.appendChild(tn);
tn.type = "hidden";
tn.name = x;
tn.value = content[x];
}
The value should be set after the element is created.
var tn;
if(dojo.isIE){
tn = dojo.doc.createElement("<input type='hidden' name='"+x+"'>");
}else{
tn = dojo.doc.createElement("input");
tn.type = "hidden";
tn.name = x;
}
tn.value = content[x];
fn.appendChild(tn);
This bug is also present in 0.4.x. Are we fixing bugs there anymore?
Patch is included.
schallm
Attachments
Change History
Note: See
TracTickets for help on using
tickets.