[Pkg-javascript-commits] [dojo] 10/23: 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:11 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag 1.9.4
in repository dojo.
commit e61aff23544049921d406ec5754da1e2e3e14309
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)
---
dom.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/dom.js b/dom.js
index 5537c0c..0d0ffa3 100644
--- a/dom.js
+++ b/dom.js
@@ -124,12 +124,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