| OLD | NEW | 
|    1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |    1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 
|    2 <html> |    2 <html> | 
|    3 <head> |    3 <head> | 
|    4 <link rel="stylesheet" href="../../fast/js/resources/js-test-style.css"> |    4 <link rel="stylesheet" href="../../fast/js/resources/js-test-style.css"> | 
|    5 <script src="../../fast/js/resources/js-test-pre.js"></script> |    5 <script src="../../fast/js/resources/js-test-pre.js"></script> | 
|    6 </head> |    6 </head> | 
|    7 <body> |    7 <body> | 
|    8 <p id="description"></p> |    8 <p id="description"></p> | 
|    9 <div id="console"></div> |    9 <div id="console"></div> | 
|   10  |   10  | 
 |   11 <div id=container> | 
|   11 <input type="text" id="f" size="5" maxlength="4"> |   12 <input type="text" id="f" size="5" maxlength="4"> | 
|   12 <input type="text" id="e" size="5" maxlength="4"> |   13 <input type="text" id="e" size="5" maxlength="4"> | 
|   13 <input type="text" id="d" size="5"> |   14 <input type="text" id="d" size="5"> | 
|   14 <input type="text" id="c" size="5"> |   15 <input type="text" id="c" size="5"> | 
|   15 <input type="text" id="j" size="5" maxlength="4"> |   16 <input type="text" id="j" size="5" maxlength="4"> | 
|   16 <input type="text" id="i" size="5" maxlength="4"> |   17 <input type="text" id="i" size="5" maxlength="4"> | 
|   17 <input type="text" id="h" size="5"> |   18 <input type="text" id="h" size="5"> | 
|   18 <input type="text" id="g" size="5"> |   19 <input type="text" id="g" size="5"> | 
|   19 <input type="text" id="k" size="5" maxlength="4"> |   20 <input type="text" id="k" size="5" maxlength="4"> | 
|   20 <input type="text" id="l" size="5" maxlength="0"> |   21 <input type="text" id="l" size="5" maxlength="0"> | 
|   21 <input type="text" id="m" size="5" maxlength=""> |   22 <input type="text" id="m" size="5" maxlength=""> | 
|   22 <input type="text" id="n" size="5" maxlength="invalid"> |   23 <input type="text" id="n" size="5" maxlength="invalid"> | 
 |   24 <input type="text" id="huge" size="5" maxlength="9999999999"> | 
 |   25 </div> | 
|   23  |   26  | 
|   24 <script> |   27 <script> | 
|   25 function domValueOf(id) { |   28 function domValueOf(id) { | 
|   26     return document.getElementById(id).value; |   29     return document.getElementById(id).value; | 
|   27 } |   30 } | 
|   28 function visibleValueOf(id) { |   31 function visibleValueOf(id) { | 
|   29     var el = document.getElementById(id); |   32     var el = document.getElementById(id); | 
|   30     el.focus(); |   33     el.focus(); | 
|   31     document.execCommand('SelectAll'); |   34     document.execCommand('SelectAll'); | 
|   32     return document.getSelection().toString(); |   35     return document.getSelection().toString(); | 
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  106 document.getElementById("m").focus(); |  109 document.getElementById("m").focus(); | 
|  107 document.execCommand("InsertHTML", false, "12x̲̅45"); |  110 document.execCommand("InsertHTML", false, "12x̲̅45"); | 
|  108 shouldBe("domValueOf('m')", "'12' + fancyX + '45'"); |  111 shouldBe("domValueOf('m')", "'12' + fancyX + '45'"); | 
|  109 shouldBe("visibleValueOf('m')", "'12' + fancyX + '45'"); |  112 shouldBe("visibleValueOf('m')", "'12' + fancyX + '45'"); | 
|  110  |  113  | 
|  111 debug("invalid maxlength should be ignored."); |  114 debug("invalid maxlength should be ignored."); | 
|  112 document.getElementById("n").focus(); |  115 document.getElementById("n").focus(); | 
|  113 document.execCommand("InsertHTML", false, "12x̲̅45"); |  116 document.execCommand("InsertHTML", false, "12x̲̅45"); | 
|  114 shouldBe("domValueOf('n')", "'12' + fancyX + '45'"); |  117 shouldBe("domValueOf('n')", "'12' + fancyX + '45'"); | 
|  115 shouldBe("visibleValueOf('n')", "'12' + fancyX + '45'"); |  118 shouldBe("visibleValueOf('n')", "'12' + fancyX + '45'"); | 
 |  119 document.getElementById("huge").focus(); | 
 |  120 document.execCommand("InsertHTML", false, "12x̲̅45"); | 
 |  121 shouldBe("domValueOf('huge')", "'12' + fancyX + '45'"); | 
 |  122 shouldBe("visibleValueOf('huge')", "'12' + fancyX + '45'"); | 
|  116  |  123  | 
 |  124 document.getElementById('container').innerHTML = ''; | 
|  117 var successfullyParsed = true; |  125 var successfullyParsed = true; | 
|  118 </script> |  126 </script> | 
|  119 <script src="../../fast/js/resources/js-test-post.js"></script> |  127 <script src="../../fast/js/resources/js-test-post.js"></script> | 
|  120 </body> |  128 </body> | 
|  121 </html> |  129 </html> | 
| OLD | NEW |