1 description('Check if the pattern constraint is not applied to some input types.');
3 var input = document.createElement('input');
5 input.pattern = '[0-9]'; // Restrict to single digit
8 // pattern doesn't work for type=range
9 shouldBe('input.validity.patternMismatch', 'false');
11 // works for type=text.
13 shouldBe('input.validity.patternMismatch', 'true');