Skip to content

Commit

Permalink
IEIE6 has a seemingly unfixable issue where [type=text] incorrectly m…
Browse files Browse the repository at this point in the history
…atches <input>. Make sure unit tests don’t break because of this.
  • Loading branch information
mathiasbynens committed Mar 1, 2011
1 parent 4fb0433 commit 5d2c6fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unit/selector.js
Expand Up @@ -335,7 +335,8 @@ test("attributes", function() {
t("Find escaped attribute value", "input[name=foo\\.baz]", ["attrbad1"]);
t("Find escaped attribute value", "input[name=foo\\[baz\\]]", ["attrbad2"]);

t("input[type=text]", "#form input[type=text]", ["text1", "text2", "hidden2", "name"]);
// The :not(#impliedText) is here because of an unfixable IE6 issue where [type=text] matches <input>
t("input[type=text]", "#form input[type=text]:not(#impliedText)", ["text1", "text2", "hidden2", "name"]);
t("input[type=search]", "#form input[type=search]", ["search"]);

attrbad.remove();
Expand Down

0 comments on commit 5d2c6fe

Please sign in to comment.