Opened 14 years ago
Closed 14 years ago
#7720 closed defect (fixed)
Unit test failure for Form.html getValues (IE)
Reported by: | bill | Owned by: | bill |
---|---|---|---|
Priority: | high | Milestone: | 1.2 |
Component: | Dijit | Version: | 1.2beta |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description (last modified by )
[object Error] ERROR IN: function getValues(){ var values = dijit.byId("myForm").attr('value'); // FF3 sticks in some tabs and newlines that mess up the equality check // Need better way to compare two HTML trees but for now do this. values.richtext = values.richtext.replace(/[\n\t]/, "", "g"); doh.is( dojo.toJson(original), dojo.toJson(values) ); } FAILED test: ../../dijit/tests/form/Form.html::dijit.form.Form::getValues 20 ms
Change History (3)
comment:1 Changed 14 years ago by
Description: | modified (diff) |
---|---|
Milestone: | tbd → 1.2 |
comment:2 Changed 14 years ago by
Owner: | set to bill |
---|---|
Status: | new → assigned |
Fixed by [15325] but I mistyped the ticket # in the checkin comment :-(.
comment:3 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Problem is race condition with IE initializing.
Apparently on the editor disabled==true until initialization finishes, thus the Editor widget is skipped on the first getValues() call. (But even if it weren't skipped I guess it would give the wrong answer.)