nateps/metamorph.js — comment on commit 77d32d305b776f05346b965359bdd9c51923815e
File:  line 0
By nateps:

I certainly agree this is not ideal. Unfortunately, I have not come up with a better IE9 workaround using comments. It would be possible to use script tags in IE9 only, but then any DOM traversal or CSS would have to be adapted for script tags or comments depending on browser, which obviously is a mess.

Note that if this parameter were never supplied, the only failures that would occur would be in IE9 inside of select elements. IE10 fixes this bug and IE6-8 have the workaround with the comment element.

Given that this is the only browser and context issue preventing the use of comments instead of script tags and that comments have advantages in terms of CSS styling and easier DOM traversal, I figured I should put the idea out there.