| 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 <div id="contenteditable1" contenteditable>contenteditable1 from form1</di
v> |
| 10 <br/> |
| 9 </form> | 11 </form> |
| 10 <form> | 12 <form id="form2"> |
| 11 <br/> | 13 <br/> |
| 12 <input id="input_radio" type="radio" style="width:50px;height:50px" /> | 14 <input id="input_radio" type="radio" style="width:50px;height:50px" /> |
| 13 <br/> | 15 <br/> |
| 14 <textarea id="textarea" rows="4" cols="20"></textarea> | 16 <textarea id="textarea" rows="4" cols="20"></textarea> |
| 15 <br/> | 17 <br/> |
| 16 <textarea id="textarea2" rows="4" cols="20" autocomplete="off"></textarea> | 18 <textarea id="textarea2" rows="4" cols="20" autocomplete="off"></textarea> |
| 17 <br/> | 19 <br/> |
| 18 <input id="input_number1" type="number" /><br/> | 20 <input id="input_number1" type="number" /><br/> |
| 19 <input id="input_number2" type="number" /><br/> | 21 <input id="input_number2" type="number" /><br/> |
| 20 <br/> | 22 <br/> |
| 21 <span id="plain_text">This is Plain Text One</span> | 23 <span id="plain_text">This is Plain Text One</span> |
| 24 <br/> |
| 25 <div id="contenteditable2" contenteditable>contenteditable2 from form2</di
v> |
| 22 </form> | 26 </form> |
| 23 | 27 |
| 24 <!-- We may trigger different sets of events for CONTENTEDITABLE and INPUT /
TEXTAREA --> | 28 <!-- 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> | 29 <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> | 30 <a id="link" href="about:blank">hello</a> |
| 27 | 31 |
| 28 <script> | 32 <script> |
| 29 var selectionChangeEventLog = ""; | 33 var selectionChangeEventLog = ""; |
| 30 var otherEventLog = ""; | 34 var otherEventLog = ""; |
| 31 var mutationObserver = new MutationObserver(function(mutations) { | 35 var mutationObserver = new MutationObserver(function(mutations) { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 108 |
| 105 // SelectionEventListener should be outside registerListenersAndObserver() to av
oid duplication. | 109 // SelectionEventListener should be outside registerListenersAndObserver() to av
oid duplication. |
| 106 addSelectionEventListener("selectionchange"); | 110 addSelectionEventListener("selectionchange"); |
| 107 | 111 |
| 108 registerListenersAndObserver(inputText); | 112 registerListenersAndObserver(inputText); |
| 109 registerListenersAndObserver(contenteditableEvent); | 113 registerListenersAndObserver(contenteditableEvent); |
| 110 </script> | 114 </script> |
| 111 | 115 |
| 112 </body> | 116 </body> |
| 113 </html> | 117 </html> |
| OLD | NEW |