Skip to content

Commit

Permalink
Added detect for <template> HTML tag
Browse files Browse the repository at this point in the history
  • Loading branch information
stucox committed Feb 26, 2013
1 parent 7bd7100 commit 0252b52
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions feature-detects/elem/template.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
define(['Modernizr', 'createElement'], function( Modernizr, createElement ) {
// <template> HTML tag
// http://www.html5rocks.com/en/tutorials/webcomponents/template/
// https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/templates/index.html
Modernizr.addTest('template', 'content' in createElement('template'));
});

0 comments on commit 0252b52

Please sign in to comment.