Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.
Mr0grogPublic archive

About

(Old and archived, imported from Google Code.) A simple JS interface working with selected text in HTML docs across browsers.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleSelection is a very simple JavaScript interface for working with selected text in an (x)HTML document.

Why?
Because the DOM selection object and text ranges are powerful, but cumbersome.
Because they aren't implemented across all browsers (*cough*ie*cough*).
Because browsers that *do* implement them are still varied in their details.
Because it's just useful!

Note that there is a similar project, IERange (http://code.google.com/p/ierange/), which aims to implement W3C DOM Ranges in IE. The goal of SimpleSelection is, instead, to simplify common operations that might be done with Ranges and Selections, such as determining if a selection is roughly equivalent to an element, replacing or wrapping a selection, and so on.

SimpleSelection is tested in Safari 3+, Firefox 3+, and IE7+ (ought to work in IE6 as well, but it hasn't been extensively tested).

SimpleSelection also provides an event for when selections are made or changed in the document.


BUILD INSTRUCTIONS
------------------

Just run make.

About

(Old and archived, imported from Google Code.) A simple JS interface working with selected text in HTML docs across browsers.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages