[Pkg-javascript-commits] [dojo] 12/27: Do not use -ms-user-select to prevent selection of elements in IE

David Prévot taffit at moszumanska.debian.org
Sun Sep 14 16:23:05 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag 1.7.6
in repository dojo.

commit 3066a3cb447d6df826c4abb24a5f58358249a0bc
Author: Colin Snover <github.com at zetafleet.com>
Date:   Fri May 2 17:31:37 2014 +0000

    Do not use -ms-user-select to prevent selection of elements in IE
    
    Fixes #17639.
    
    (cherry picked from commit 7ae2a43b608eae921b862b7feb6f2910bb45b03a)
    (cherry picked from commit e61aff23544049921d406ec5754da1e2e3e14309)
    (cherry picked from commit 0a7036f4d8a66b280387d24db91eeec925e2ef9c)
---
 dom.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dom.js b/dom.js
index 220ff7d..da6aa99 100644
--- a/dom.js
+++ b/dom.js
@@ -146,12 +146,17 @@ define(["./_base/sniff", "./_base/lang", "./_base/window"],
 	
 	// Add feature test for user-select CSS property
 	// (currently known to work in all but IE < 10 and Opera)
+	// TODO: The user-select CSS property as of May 2014 is no longer part of
+	// any CSS specification. In IE, -ms-user-select does not do the same thing
+	// as the unselectable attribute on elements; namely, dijit Editor buttons
+	// do not properly prevent the content of the editable content frame from
+	// unblurring. As a result, the -ms- prefixed version is omitted here.
 	has.add("css-user-select", function(global, doc, element){
 		// Avoid exception when dom.js is loaded in non-browser environments
 		if(!element){ return false; }
 
 		var style = element.style;
-		var prefixes = ["Khtml", "O", "ms", "Moz", "Webkit"],
+		var prefixes = ["Khtml", "O", "Moz", "Webkit"],
 			i = prefixes.length,
 			name = "userSelect",
 			prefix;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git



More information about the Pkg-javascript-commits mailing list