Skip to content

Commit

Permalink
Fixed insert order in test_hyphens_find
Browse files Browse the repository at this point in the history
<input> was being inserted below <div>, which was messing up focus and
causing false negatives in Chrome (at least)
  • Loading branch information
nwtn committed Apr 19, 2012
1 parent cede060 commit caa5737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feature-detects/css-hyphens.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ More details at https://github.com/Modernizr/Modernizr/issues/312
div.innerHTML = testword + delimiter + testword;

document.body.insertBefore(div, firstChild);
document.body.insertBefore(dummy, firstChild);
document.body.insertBefore(dummy, div);


/* reset the selection to the dummy input element, i.e. BEFORE the div container
Expand Down

0 comments on commit caa5737

Please sign in to comment.