| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../../resources/js-test-pre.js"></script> |
| description('This test aims to check for rangeOverflow flag with input fields'); |
| var input = document.createElement('input'); |
| function checkNotOverflow(value, max, disabled) |
| input.disabled = !!disabled; |
| var overflow = input.validity.rangeOverflow; |
| var resultText = 'The value "' + input.value + '" ' + |
| (overflow ? 'overflows' : 'doesn\'t overflow') + |
| ' the maximum value "' + input.max + '"' + (disabled ? ' when disabled.' : '.'); |
| // ---------------------------------------------------------------- |
| input.type = 'text'; // No overflow for type=text. |
| checkNotOverflow('101', '100'); |
| <script src="../../resources/js-test-post.js"></script> |