summaryrefslogtreecommitdiff
path: root/source/bower_components/modernizr/feature-detects/contenteditable.js
blob: 6543666e55bb6797658f3bc88a26d0fb955aa054 (plain)
1
2
3
4
5
6
7
8
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);