Simplify selection grabbing for Firefox compatibility.