Skip to content

Commit

Permalink
made minor changes based on tips from stucox
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Pegado committed Mar 26, 2013
1 parent 93cca50 commit a8dc633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions feature-detects/css/checked.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
!*/
define(['Modernizr', 'createElement', 'testStyles'], function( Modernizr, createElement, testStyles ) {
Modernizr.addTest('checked', function(){
return Modernizr.testStyles('#modernizr input {width:100px} #modernizr :checked {width:200px;display:block}', function(elem, rule){
var cb = document.createElement('input');
return testStyles('#modernizr input {width:100px} #modernizr :checked {width:200px;display:block}', function(elem, rule){
var cb = createElement('input');
cb.setAttribute("type", "checkbox");
cb.setAttribute("checked", "checked");
elem.appendChild(cb);
Expand Down

0 comments on commit a8dc633

Please sign in to comment.