Skip to content

Commit

Permalink
adding contenteditable,output and time feature detection tests
Browse files Browse the repository at this point in the history
  • Loading branch information
addyosmani committed Dec 1, 2011
1 parent 969f4ea commit fb78f9f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions feature-detects/contenteditable.js
Original file line number Diff line number Diff line change
@@ -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')));
4 changes: 4 additions & 0 deletions feature-detects/output.js
Original file line number Diff line number Diff line change
@@ -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')));
4 changes: 4 additions & 0 deletions feature-detects/time.js
Original file line number Diff line number Diff line change
@@ -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.