Trying to find a selector to get all elements that have both no class, and no id set to them.
So far I have 2 different outputs depending on if there is a space in
$('*:not([id]):not([class])')
Your withSpace will select elements that don't have a class and have a parent which don't have an id. Not sure about noSpace. UPDATE Oh, it's does the same thing as mine, actually. So, the answer is your last selector.
withSpace
noSpace