Changes between Initial Version and Version 1 of Ticket #7720


Ignore:
Timestamp:
Sep 24, 2008, 12:35:31 PM (13 years ago)
Author:
bill
Comment:

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.)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7720

    • Property Milestone changed from tbd to 1.2
  • Ticket #7720 – Description

    initial v1  
    11{{{
    2 [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
     2[object Error]     ERROR IN:  function getValues(){
     3var values = dijit.byId("myForm").attr('value'); // FF3 sticks in some tabs and newlines that mess up the equality check
     4// Need better way to compare two HTML trees but for now do this. values.richtext = values.richtext.replace(/[\n\t]/, "", "g");
     5 doh.is( dojo.toJson(original), dojo.toJson(values) ); } FAILED test: ../../dijit/tests/form/Form.html::dijit.form.Form::getValues 20 ms
    36}}}