JQuery Taconite plugin not working in IE9

JQuery Taconite plugin not working in IE9

Hello

I develop a website that relies on the Taconite plugin:

Jquery Taconite Site

The website works in all major browsers IE 6 - 8, Firefox, Chrome and safari. I am using JQuery 1.5.1 and Taconite 3.57 which are both the latest stable releases.

As IE9 has now been offically released I decided to test the website within that browser however some elements of taconite seem to break.

Here is the HTML page i am using for troubleshooting this problem, very basic.

  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <script type='text/javascript' src='./JS/Required/jquery-1.5.1.min.js'></script>
  5. <script type='text/javascript' src='./JS/Required/jquery.taconite.3.57.js'></script>
  6. <script type='text/javascript' src='./JS/test.js'></script>
  7. <title>Taconite AJAX Test</title>
  8. </head>
  9. <body>
  10. <div id = 'changeMe'>Change me!</div>
  11. <div id = 'clickMe'>Click to change!</div>
  12. </body>
  13. </html>

Here is test.js, a simple click and .get event.

  1. $(document).ready(function() {
  2. $("#clickMe").click(function() {
  3. $.get('response.php');
  4. });
  5. });

And here is the AJAX response (response.php).

  1. <?php header('Content-type: text/xml');  ?>
  2. <taconite>
  3. <replaceContent select="#changeMe">
  4. <table>
  5. <thead><tr><th>Head of Table</th></tr></thead>
  6. <tbody><tr><td>Body of Table</td></tr></tbody>
  7. </table>
  8. </replaceContent>
  9. </taconite>
I have attached a screenshot of what IE is reporting as an error. Strangely enough this problem only seems to affect <TABLE> tags, not any other tag. I.e. The below AJAX response will work exactly as expected.

  1. <?php header('Content-type: text/xml');  ?>
  2. <taconite>
  3. <replaceContent select="#changeMe">
  4. <h1>Hello!</h1>
  5. <p>This is a working response.</p>
  6. <div>This is a working response in a DIV tag.</div>
  7. </replaceContent>
  8. </taconite>
Any help on this would be much appreciated before IE9 becomes a bit mrore mainstream, I would be loathed to abandon taconite as it is such a versatile plugin.