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