var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,
// Is it a simple selector
- isSimple = /^.[^:#\[\.]*$/,
+ isSimple = /^.[^:#\[\.,]*$/,
// Will speed up references to undefined, and allows munging its name.
undefined;
});
// Clean up
- div.innerHTML = "";
+ // Safari 3.1 throws an exception when a colgroup is created
+ try {
+ div.innerHTML = "";
+ } catch(e){}
if ( fragment ) {
for ( var i = 0; ret[i]; i++ ) {