| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <meta name="viewport" content="width=device-width" /> | 3 <meta name="viewport" content="width=device-width" /> |
| 4 </head> | 4 </head> |
| 5 <body> | 5 <body> |
| 6 <form action="about:blank"> | 6 <form id="form1" action="about:blank"> |
| 7 <input id="input_text" type="text" size="10"/> | 7 <input id="input_text" type="text" size="10"/> |
| 8 <br/> | 8 <br/> |
| 9 </form> | 9 </form> |
| 10 <form> | 10 <form> |
| 11 <br/> | 11 <br/> |
| 12 <input id="input_radio" type="radio" style="width:50px;height:50px" /> | 12 <input id="input_radio" type="radio" style="width:50px;height:50px" /> |
| 13 <br/> | 13 <br/> |
| 14 <textarea id="textarea" rows="4" cols="20"></textarea> | 14 <textarea id="textarea" rows="4" cols="20"></textarea> |
| 15 <br/> | 15 <br/> |
| 16 <textarea id="textarea2" rows="4" cols="20" autocomplete="off"></textarea> | 16 <textarea id="textarea2" rows="4" cols="20" autocomplete="off"></textarea> |
| 17 <br/> | 17 <br/> |
| 18 <input id="input_number1" type="number" /><br/> | 18 <input id="input_number1" type="number" /><br/> |
| 19 <input id="input_number2" type="number" /><br/> | 19 <input id="input_number2" type="number" /><br/> |
| 20 <br/> | 20 <br/> |
| 21 <span id="plain_text">This is Plain Text One</span> | 21 <span id="plain_text">This is Plain Text One</span> |
| 22 <br/> |
| 23 <div id="contenteditable1" contenteditable>contenteditable1</div> |
| 24 <br/> |
| 25 <input id="search1" type="search" size="10" /> |
| 26 <br/> |
| 27 <input id="input_text1" type="text" size="10" /> |
| 28 <br/> |
| 22 </form> | 29 </form> |
| 23 | 30 |
| 24 <!-- We may trigger different sets of events for CONTENTEDITABLE and INPUT /
TEXTAREA --> | 31 <!-- We may trigger different sets of events for CONTENTEDITABLE and INPUT /
TEXTAREA --> |
| 25 <div id="contenteditable_event" contenteditable><b>ab</b>cd<i>ef<b>gh</b></i
></div> | 32 <div id="contenteditable_event" contenteditable><b>ab</b>cd<i>ef<b>gh</b></i
></div> |
| 26 <a id="link" href="about:blank">hello</a> | 33 <a id="link" href="about:blank">hello</a> |
| 27 | 34 |
| 28 <script> | 35 <script> |
| 29 var selectionChangeEventLog = ""; | 36 var selectionChangeEventLog = ""; |
| 30 var otherEventLog = ""; | 37 var otherEventLog = ""; |
| 31 var mutationObserver = new MutationObserver(function(mutations) { | 38 var mutationObserver = new MutationObserver(function(mutations) { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 111 |
| 105 // SelectionEventListener should be outside registerListenersAndObserver() to av
oid duplication. | 112 // SelectionEventListener should be outside registerListenersAndObserver() to av
oid duplication. |
| 106 addSelectionEventListener("selectionchange"); | 113 addSelectionEventListener("selectionchange"); |
| 107 | 114 |
| 108 registerListenersAndObserver(inputText); | 115 registerListenersAndObserver(inputText); |
| 109 registerListenersAndObserver(contenteditableEvent); | 116 registerListenersAndObserver(contenteditableEvent); |
| 110 </script> | 117 </script> |
| 111 | 118 |
| 112 </body> | 119 </body> |
| 113 </html> | 120 </html> |
| OLD | NEW |