Is there a way to programmatically check the validity of a javascript/jquery selector?
like .class is ok but .class, is not
programmatically in javascript or any backend language (besides going through jQuery source code)
so in pseudo code
def selectorErrors(selector)
// do nasty stuff to the selector
if valid?
return nil
else
return errors
end
end