All Projects → luwes → Selection Polyfill

luwes / Selection Polyfill

Text selection polyfill for IE8

Programming Languages

javascript
184084 projects - #8 most used programming language

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/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].