Wednesday, April 15th, 2009
ierange: Implementing W3C DOM ranges for IE
<>p>Tim Cameron Ryan has released a full, feature complete version of W3C DOM Ranges shim that adds support to IE, ierange. It goes further than other versions:Ranges:
- document.createRange()
- startContainer, startOffset, endContainer, endOffset, commonAncestorContainer, collapsed
- setStart(), setEnd(), setStartBefore(), setStartAfter(), setEndBefore(), setEndAfter(), selectNode(), selectNodeContents(), collapse()
- insertNode(), surroundContents()
- extractContents(), cloneContents(), deleteContents()
- compareBoundaryPoints(), cloneRange(), createContextualFragment(), toString()
- Range support (Webkit-style)
- window.getSelection()
- addRange(), removeAllRanges(), getRangeAt(), toString()
You can test this out on IE.








Would be a good addition to Dean’s IE7/8.
Excellent, I needed this exact thing for a project a few months ago.
Nice! Having trouble with surroundContent in IE8… erases content instead, on occasion. Just select a few times and surround. `invalid argument, line 264, ierange.js`