patch for radio buttons in IE <7
March 19, 2008 - 8:35pm — purge
| Project: | appendDom |
| Version: | 1.0.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
ref: http://mg.to/2006/02/27/easy-dom-creation-for-jquery-and-prototype#comme...
patch to fix:
var el = (typeof(template[element].tagName) === 'string') ?
(template[element].tagName === 'input' && jQuery.browser.msie && parseInt(jQuery.browser.version,10) < 7) ?
document.createElement("<input name='" + template[element]['name'] + "'/>") :
document.createElement(template[element].tagName)
: document.createTextNode('');Thanks
Simon.
