| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="../../resources/js-test.js"></script> | |
| 5 </head> | |
| 6 <body> | |
| 7 <p id="description">Bug 45681: Assertion failure about dirty flag changes of tex
tarea elements.</p> | |
| 8 <div id="console"></div> | |
| 9 <script> | |
| 10 var ta = document.createElement('textarea'); | |
| 11 ta.setAttribute('maxlength', '1'); | |
| 12 ta.value = 'abc'; // Make it dirty && invalid. | |
| 13 ta.checkValidity(); // This made an assertion failure. | |
| 14 testPassed('Not crashed.'); | |
| 15 | |
| 16 ta.value = 'a'; // Make it dirty && valid. | |
| 17 ta.defaultValue = 'abc'; // Make it non-dirty && invalid. | |
| 18 ta.checkValidity(); // This made an assertion fail. | |
| 19 testPassed('Not crashed.'); | |
| 20 </script> | |
| 21 </body> | |
| 22 </html> | |
| OLD | NEW |