});
} else if (elem.currentStyle) {
var newProp = prop.replace(/-(w)/g,function(m,c){return c.toUpperCase();});
ret = elem.currentStyle[prop] || elem.currentStyle[newProp];
}
return ret;
},
clean: function(a) {
var r = [];
for ( var i = 0; i < a.length; i++ ) {
var arg = a[i];
if ( typeof arg == “string” ) { // Convert html string into DOM nodes
// Trim whitespace, otherwise indexOf won’t work as expected
var s = jQuery.trim(arg), div = document.createElement(“div”), wrap = [0,””,””];
if ( !s.indexOf(“<opt”) ) // option or optgroup
wrap = [1, “<select>”, “</select>”];
else if ( !s.indexOf(“<thead”) || !s.indexOf(“<tbody”) )
wrap = [1, “<table>”, “</table>”];
else if ( !s.indexOf(“<tr”) )
wrap = [2, “<table>”, “</table>”]; // tbody auto-inserted










