Text selection polyfill for IE8
JavaScript CoffeeScript HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
README.md
gulpfile.js
index.html
package.json
selection-polyfill.js
selection-polyfill.min.js
yarn.lock

README.md

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/