factor out iterating over single or multi elements and reuse in standalong .detach function as well
factor out iterating over single or multi elements and reuse in standalong .detach function as well

marcj/css-element-queries,marcj/css-element-queries,privard/css-element-queries,marcj/css-element-queries