Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/luwes/selection-polyfill

Text selection polyfill for IE8
https://github.com/luwes/selection-polyfill

Last synced: 17 days ago
JSON representation

Text selection polyfill for IE8

Awesome Lists containing this project

README

        

# Selection Polyfill

Text selection polyfill for IE8
Implements the following (so far)

- window.getSelection()
- document.createRange()
- input.selectionStart
- input.selectionEnd
- Selection (Class) ----
- selection.rangeCount
- selection.anchorNode
- selection.anchorOffset
- selection.focusNode
- selection.focusOffset
- selection.getRangeAt(index)
- selection.removeAllRanges()
- selection.addRange(range)
- selection.deleteFromDocument()
- selection.toString()
- Range (Class) ----
- range.commonAncestorContainer
- range.collapsed
- range.startContainer
- range.startOffset
- range.endContainer
- range.endOffset
- range.setStart(node, offset)
- range.setEnd(node, offset)
- range.selectNodeContents(node)
- range.collapse(toStart)
- range.compareBoundaryPoints(how, range)
- range.getBoundingClientRect()
- range.cloneRange()
- range.detach()
- range.toString()

https://dvcs.w3.org/hg/editing/raw-file/tip/editing.html#selections

## License
http://luwes.mit-license.org/