Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/luwes/selection-polyfill
- Owner: luwes
- Created: 2014-03-06T08:07:21.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-10-28T15:42:41.000Z (about 1 year ago)
- Last Synced: 2024-10-03T12:16:31.024Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 81.1 KB
- Stars: 48
- Watchers: 4
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/