Skip to content
This repository has been archived by the owner on Mar 16, 2018. It is now read-only.

Prevent IE 11 from using document.selection #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shanekenney
Copy link

For IE 11, document.selection is no longer supported. See
http://msdn.microsoft.com/en-us/library/ie/ms535869(v=vs.85).aspx
for details.

Updated condition so IE 11 uses selectionStart and
selectionEnd similar to Chrome and Firefox.

Versions of IE < 11 are unaffected.

image

For IE 11, document.selection is no longer supported. See 
http://msdn.microsoft.com/en-us/library/ie/ms535869(v=vs.85).aspx 
for details. Updated condition so IE 11 uses selectionStart and 
selectionEnd.
@YurySolovyov
Copy link

@shanekenney you just saved my day. it would be great to see that merged.

@agarzola
Copy link
Owner

It’s clear I’ve not had the disposition to maintain this repository. @shanekenney, would you be interested in being added as a collaborator to this project?

@toannh0104
Copy link

Very good PR

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants