[Pkg-javascript-commits] [dojo] 07/19: 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:08 UTC 2014


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

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

commit 0a7036f4d8a66b280387d24db91eeec925e2ef9c
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)
---
 dom.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dom.js b/dom.js
index 4c1ec89..9b0b56a 100644
--- a/dom.js
+++ b/dom.js
@@ -116,12 +116,17 @@ define(["./sniff", "./_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