Metadata
- Source
- FLUID-2201
- Type
- Bug
- Priority
- Major
- Status
- Closed
- Resolution
- Fixed
- Assignee
- Justin Obara
- Reporter
- Justin Obara
- Created
2009-02-06T08:36:37.000-0500 - Updated
2009-02-06T11:47:39.000-0500 - Versions
- N/A
- Fixed Versions
-
- 0.8
- Component
-
- Renderer
Description
Renderer Test 1.3 fails
http://build.fluidproject.org/fluid/tests/fluid-tests/Renderer-test.html
Environments
IE
Comments
-
Antranig Basman commented
2009-02-06T10:43:16.000-0500 Fixed at revision 6438 -
It seems we need quite a refined strategy to avoid the breakage of markup which is set via innerHTML.
Yesterday's change, to the direct use of innerHTML rather than jQuery.html() was prompted by the observation that jQuery.html() causes table markup to be destroyed under FF - setting the contents of a tbody to a raw list of tr causes all of the table packaging material to disappear - since jQuery's strategy is to always set the innerHTML of a plain div, and then to recover it.However, the jQuery strategy, while breaking on FF, is vital on IE - IE will simply throw a runtime error when presented with any bare table markup - this is even attested at the MS knowledgebase! http://support.microsoft.com/kb/239832 - they insist that innerHTML of most table nodes is read only...
So, we now have to adopt a mixed strategy in the renderer, of using jQuery.html on IE, for non-explosion, and direct innerHTML on FF, for non-destruction. This seems to work for now...
-
Justin Obara commented
2009-02-06T11:47:39.000-0500 Verified fix using:
IE 6 (Win XP, Win 2000)
IE 7 (Win XP, Win Vista)