summaryrefslogtreecommitdiff
path: root/source/bower_components/modernizr/feature-detects/contenteditable.js
diff options
context:
space:
mode:
Diffstat (limited to 'source/bower_components/modernizr/feature-detects/contenteditable.js')
-rw-r--r--source/bower_components/modernizr/feature-detects/contenteditable.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/bower_components/modernizr/feature-detects/contenteditable.js b/source/bower_components/modernizr/feature-detects/contenteditable.js
new file mode 100644
index 0000000..6543666
--- /dev/null
+++ b/source/bower_components/modernizr/feature-detects/contenteditable.js
@@ -0,0 +1,9 @@
+// contentEditable
+// http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html#contenteditable
+
+// this is known to false positive in some mobile browsers
+// here is a whitelist of verified working browsers:
+// https://github.com/NielsLeenheer/html5test/blob/549f6eac866aa861d9649a0707ff2c0157895706/scripts/engine.js#L2083
+
+Modernizr.addTest('contenteditable',
+ 'contentEditable' in document.documentElement);