" + tag + "> "; }); // Trim whitespace, otherwise indexOf won't work as expected var tags = jQuery.trim( elem ).toLowerCase(), div = context.createElement("div"); var wrap = // option or optgroup ! tags.indexOf(" ", " " ] || ! tags.indexOf(" ", " " ] || tags.match(/^<(thead|tbody|tfoot|colg|cap)/) && [ 1, " " ] || ! tags.indexOf("
", " " ] || // matched above (!tags.indexOf(" | ", "
" ] || ! tags.indexOf(" ", " " ] || // IE can't serialize and