Browse files

adding contenteditable,output and time feature detection tests

  • Loading branch information...
1 parent 969f4ea commit fb78f9f9b8a95b3471fd90e6c199e24b6243bf78 @addyosmani addyosmani committed Dec 1, 2011
Showing with 12 additions and 0 deletions.
  1. +4 −0 feature-detects/contenteditable.js
  2. +4 −0 feature-detects/output.js
  3. +4 −0 feature-detects/time.js
View
4 feature-detects/contenteditable.js
@@ -0,0 +1,4 @@
+// contentEditable
+// http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html#contenteditable
+// by Addy Osmani
+Modernizr.addTest('contentEditable', !!('isContentEditable' in document.createElement('span')));
View
4 feature-detects/output.js
@@ -0,0 +1,4 @@
+// <output>
+// http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#the-output-element
+// by Addy Osmani
+Modernizr.addTest('output', !!('value' in document.createElement('output')));
View
4 feature-detects/time.js
@@ -0,0 +1,4 @@
+// <time> element
+// http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#the-time-element-0
+// by Addy Osmani
+Modernizr.addTest('time', !!('valueAsDate' in document.createElement('time')));

0 comments on commit fb78f9f

Please sign in to comment.