return a list of all of a DOM nodes parents, optionally filtered