Polyfill for the W3C Selection/Range API, intended for IE8 or lower.