summaryrefslogtreecommitdiff
path: root/source/bower_components/modernizr/feature-detects/forms-placeholder.js
diff options
context:
space:
mode:
Diffstat (limited to 'source/bower_components/modernizr/feature-detects/forms-placeholder.js')
-rw-r--r--source/bower_components/modernizr/feature-detects/forms-placeholder.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/bower_components/modernizr/feature-detects/forms-placeholder.js b/source/bower_components/modernizr/feature-detects/forms-placeholder.js
new file mode 100644
index 0000000..e68014b
--- /dev/null
+++ b/source/bower_components/modernizr/feature-detects/forms-placeholder.js
@@ -0,0 +1,10 @@
+// testing for placeholder attribute in inputs and textareas
+// re-using Modernizr.input if available
+
+Modernizr.addTest('placeholder', function(){
+
+ return !!( 'placeholder' in ( Modernizr.input || document.createElement('input') ) &&
+ 'placeholder' in ( Modernizr.textarea || document.createElement('textarea') )
+ );
+
+});