FLUID-3953 options

Wong, Harris hwong at ocad.ca
Fri May 27 13:58:26 UTC 2011

Hi all,

The unit tests in ImageReorderer fails in IE9 as described here http://issues.fluidproject.org/browse/FLUID-3953.  This is probably due to the Document Mode in IE9, in conjunction with the use of "rsf:id".  When using "rsf:id" with IE9 Document Mode, it replaces the "id" attribute with 'rsf:id", resulting 2 "rsf:id" in the element's list of attributes.  As a result, calling fluid.jById('foo'), jQuery('#foo'), or document.getElementById('foo') returns null.  

If we run the Pager demo which uses "rsf:id", it seems to work fine; if we run the ImageReorderer demo, it seems to work fine as well.  The problem seems to affect the ImageReorderer UnitTest only.  Here are a few suggestions I have to address this problem, I am not sure which is the best however:

1. Remove "rsf:id", since image reorderer doesn't need "rsf:id".  
2. Add meta-data to force IE9 to use other document mode. <meta http-equiv="X-UA-Compatible" content="IE=xxx" >, http://msdn.microsoft.com/en-us/library/cc288325%28v=vs.85%29.aspx
3. This could be an IE9 bug since it makes no sense to overwrite the "id" attribute with our custom attribute "rsf:id". We may want to mark this test case as "expected to fail with IE9" and wait till it's fixed on IE9, then re-test it again. 

I vote #1.


More information about the fluid-work mailing list