-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathemir.html
2600 lines (2546 loc) · 98.8 KB
/
emir.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<!-- { //# emir__INFO__
git clone [email protected]:EnDe/EMiR.git
WARNING: The code here is a mix of HTML, CSS and JavaScript. There is
no proper design/architecture like MVC, everything is implemented as
simple as possible. The intention is to define "things" once and use
them multiple times.
Most runtime-configuration can be done in the "Config" section of the
Webpage, except configuration for debugging (see "var debug" below).
There are also some comments "emir__*__" used as marker for tags.pl .
} //# emir__INFO__ -->
<head> <!-- //# emir__HEAD__ -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>EMiR - Event Mappings in Reality (emir.html 1.73)</title> <!-- //# emir__TITLE__ -->
<meta name="dummy" content=""> <!-- //# emir__META__ -->
<meta name="Author" content="Achim Hoffmann">
<meta name="Generator" content="me using vi ;-)">
<meta name="DC.Creator" content="emir @at@ my -dash- stp .dot. net">
<meta name="DC.Date" content="2009-08-02">
<meta name="DC.Source" content="@(#) emir.html 1.73 20/08/05 00:28:04">
<meta name="DC.Identifier" content="git://github .dot. com/EnDe/EMiR/">
<meta name="DC.Title" content="EMiR">
<meta name="DC.Description" content="EMiR - Event Mappings in Reality, strange Browser behaviours">
<meta name="DC.Language" content="en">
<meta name="DC.Rights" content="Creative Commons 3.0, http://creativecommons.org/licenses/by-sa/3.0/">
<style type="text/css">
/*# { emir__CSS__ */
body, h1 { font-weight:normal; font-family:monospace; font-size:10pt; }
h2 { font-weight:bold; font-size:150%; }
.chck { }
.c1 { float:left; background:#fafafa; width:1em; max-width:1em; position:fixed;top:0px;left:0px;margin:0px;padding:0px; height:100%; border-right:1px solid #000000; padding-left:0.3em; }
.c2 { margin-left:2em; }
.c2 > div { padding:0.5em; }
.c2 > div:hover { border-radius:8px; box-shadow:0px 5px 5px #666; }
.c2 > div button { width:7em; height:1.6em; }
.c2 li > b:before , .testme:before { content:"- test me -"; }
.c2 li > b { background:#00ffff; border:1px solid #000000; }
.testme { background:#00ffff; border:1px solid #000000; }
.c1 ul { display:none; background:#fafafa; position:fixed; top:0.5em; left:1em; z-index:1; border-top:1px solid #000000;border-right:1px solid #000000; border-bottom:1px solid #000000; padding:0.5em; }
.c1 li:hover ul { display:block; }
.c1 li { list-style:none; margin-left:0px; }
.c1 ul li { list-style:none; margin-left:0px; }
.nav a { color:#000000; text-decoration:none; background:#f0f0f0; border:1px outset #f6f6f6; padding-left:0.5em; padding-right:0.5em; width:100%; font-weight:bold; }
.nav { border-radius:8px; box-shadow:0px 5px 5px #666; }
.nav a:hover { color:#0000ff; text-decoration:none; }
.nav a:active { color:#000000; text-decoration:none; }
ul.conf { padding: 0px; }
ul.conf li {
display: none;
list-style: none;
list-style-type:none;
}
ul.conf:hover li {
display: block;
position: absolute;
margin-top: -0.9em;
margin-right: 1.0em;
z-index: 1;
background: #ffffff;
}
.otab ul {
padding-top: 1.0ex;
padding-right: 1.0em;
padding-bottom: 1px;
margin-bottom: 0px;
border-bottom: 1px solid #a0a0a0;;
}
.otab ul li {
display: inline;
list-style: none;
list-style-type:none;
}
.otab ul li a {
margin: 0px;
padding-top: 0.3ex;
padding-bottom: 0.3ex;
padding-right: 0.5em;
padding-left: 0.5em;
border-right: 1px solid #a0a0a0;;
border-top: 1px solid #a0a0a0;;
border-left: 1px solid #a0a0a0;;
/* border-bottom: 1px solid #a0a0a0; / * don't define here! */
-moz-border-radius-topleft: 5px;
-moz-border-radius-topright: 5px;
-khtml-border-radius-topleft: 5px;
-khtml-border-radius-topright: 5px;
-webkit-border-top-left-radius: 5px;
-webkit-border-top-right-radius: 5px;
text-decoration: none;
color: #000000;
}
.otab ul li a:hover { background:#a0a0a0; color:#000000; text-decoration:none; }
.otab ul li a:focus { outline-style:none; }
.otab_bg { background:#d8d8d8; border-bottom:1px solid #a0a0a0; }
.otab_fg { background:#ffffff; border-bottom:1px solid #ffffff; }
.utab ul {
padding-right: 1.0em;
padding-top: 1px;
border-top: 1px solid #a0a0a0;;
}
.utab ul li {
display: inline;
list-style: none;
list-style-type:none;
}
.utab ul li a {
padding-top: 0.3ex;
padding-bottom: 0.3ex;
padding-right: 0.5em;
padding-left: 0.5em;
border-left: 1px solid #a0a0a0;
/* border-top: 1px solid #a0a0a0; / * don't define here! */
border-right: 1px solid #a0a0a0;
border-bottom: 1px solid #a0a0a0;
-moz-border-radius-bottomleft: 5px;
-moz-border-radius-bottomright: 5px;
-khtml-border-radius-bottomleft: 5px;
-khtml-border-radius-bottomright:5px;
-webkit-border-bottom-left-radius: 5px;
-webkit-border-bottom-right-radius:5px;
text-decoration: none;
color: #000000;
min-width: 8.0em;
}
.utab ul li a:hover { background:#a0a0a0; color:#000000; text-decoration:none; }
.utab ul li a:focus { outline-style:none; }
.utab_bg { background:#d8d8d8; border-top:1px solid #a0a0a0; }
.utab_fg { background:#ffffff; border-top:1px solid #ffffff; }
.text label { word-break:keep-all; } /* not yet working */
.text label input { word-break:keep-all; } /* not yet working */
.c { width:20em; text-align:right; display:inline; }
p > i { background:#d0d0d0; font-family:monospace; font-size:16px; font-style:normal; }
span.tag { background:#c0c0f0; padding:3px 5px 3px 5px; font-weight:bold; min-width:8em; display:inline-block; }
span.tag_file { background:#c0c0c0; font-weight:normal; }
span.tag:before { content:"<"; }
span.tag:after { content:">"; }
fieldset { background:#f0f0f0; padding:0px; }
fieldset:first-child { background:#ffffff; }
fieldset:first-child:hover { background:#00ffff; }
fieldset:first-child:focus { background:#ff00ff; }
fieldset.e:first-child:hover{ background:#ffffff; }
.err { background:#ffff00; }
.err:first-child { background:#ffff00; }
.err:hover { background:#ff0000; }
.err:first-child:hover { background:#ff0000; }
.table { border:1px solid #000000; border-collapse:separate; border-spacing:1px 1px; }
.status { border:1px solid #808080; color:#808080; background:#ffffcf; position:fixed; width:99.9%; height:3em; margin:0px; left:0px; bottom:0px; }
.status:before { content: "Status: "; }
label { border:1px solid #ffffff; padding:2px; margin:2px; }
.c2 > div label { border:1px solid #00b0ff; padding:0px; margin:0px; }
#events, #tags, #config { border-radius:8px; box-shadow:0px 5px 5px #666;
padding-left:1em;
padding-bottom:0.5em;
border-right:1px solid #000000;
border-bottom:1px solid #000000;
}
#events label:hover { border:1px solid #00b0ff; }
#tags label:hover { border:1px solid #00b0ff; }
#config { padding:0em; }
#config label { width:20em; }
#config label:hover { border:1px solid #00b0ff; }
#config fieldset { padding:1em; border:2px outset #f6f6f6; }
/*# } emir__CSS__ */
</style>
<!--[if IE]><style type="text/css">ul.conf li {display:block;}</style> <![endif] -->
<script type="text/javascript">
//# { emir__JS__
// JavaScript used also in files generated by tags.pl
function $l$(typ) {//#? called when "get list of .." clicked
var o = [];
switch (typ) {
case 'events': o = emir.get_events('all').sort(); break;
case 'html': // no break;
case 'tags': o = emir.get_tags('all').sort(); break;
}
var win = null;
try {
win = window.open('', typ,
'resizable=yes,scrollbars=yes,dependent=yes'
+',status=no,menubar=no,toolbar=no,location=no'
+',innerHeight=400,innerWidth=400,width=450,height=500'
);
} catch (e) { alert('window.open: ',e); }
try {
// if (isKonqueror===true) { // some browsers behave strange ..
//win.document.body.innerHTML = '<textarea rows="28" cols="99" id="scratch"></textarea>';
//} else {
var area = null;
if (typ === 'html') {
var obj = null;
area = document.createElement('DIV');
for (var a=0; a<o.length; a++) {
obj = document.createElement('SPAN');
obj.innerHTML = ' ' + o[a] + ': <' + o[a] + '></' + o[a] + '>';
area.appendChild(obj);
}
} else {
area = document.createElement('TEXTAREA');
area.setAttribute('rows',25);
area.setAttribute('cols',40);
area.id = typ;
area.innerHTML = o.join('\n');
}
win.document.body.appendChild(area);
//}
} catch (e) { alert('create area',e); }
// TODO: IE 10 throws exception but without any text
return false;
}; // $l$
function $c$(obj,typ) {//#? called when checkbox in "Show Events" clicked
var val = (obj.checked===true) ? 'inline' : 'none';
emir.status('checkbox: ' + typ);
emir.find.checked({type:typ});
emir.find.show(val);
return true; // must return true, otherwise checkbox will not be activated
}; // $c$
function $e$(tag,evt) {//#? called for events of tag; sets corresponding checkbox
if (tag.id===undefined) { return true; } // take care for event bubbling
if (tag.id==='') { return true; } // ..
if (emir.cfg.e_show===true) {
if (tag.id==='marquee') { return true; } // marquee.onStart is too noisy
emir.status('event: ' + tag.id + '.' + evt + '()'); // does not show text in all browsers
}
var o = document.getElementById(tag.id + '-' + evt);
if (o===null) { return false; }
if (!o.emirsend) {
// only send for first occurance
// otherwise huge amount of onMouse* events may flood the server
// and slow down the browser
if (emir.cfg.e_send===true) {
emir.http.post_event(tag.tagName, evt);
o.emirsend = true;
}
}
o.disabled = false; // tweak some browsers to display new text
o.checked = true;
o.disabled = true;
return false;
}; // $e$
function $s$(obj,typ) {//#? called when highlight (un)check in "Show Events" clicked
if (emir.selected.event===undefined) { return false; }
emir.status('highlight: ' + typ);
var c = null;
var e = emir.get_events(emir.selected.event);
for (var i=0; i<e.length; i++) {
c = document.getElementById('use-event-' + e[i] + '-' + e[i]);
if (typ==='check') { c.checked = true; }
if (typ==='uncheck') { c.checked = false; }
$c$(c, e[i]);
}
return false;
}; // $s$
function $t$(obj,cls) {//#? called when tab in "Show Events", "Show Tags" clicked
emir.status('tab: ' + obj.id);
var c = '';
var arr = obj.id.split('-'); // we get: use-event-* or use-tag-*
var typ = arr[1];
var tab = arr[2];
arr = document.getElementsByTagName('A');
for (var a=0; a<arr.length; a++) {
if (arr[a].id===undefined) { continue }; // unknown object
if (arr[a].id.split('-')[1]!==typ) { continue }; // skip tabs in other list
c = arr[a].getAttribute('class');
if (c.match(new RegExp('^'+cls+'tab_fg$'))!==null) {
arr[a].setAttribute('class',c.replace('fg','bg'));
break;
}
}
switch (typ) {
case 'event': emir.selected.event = tab; break;
case 'tag': emir.selected.tag = tab; break;
}
emir.find.mark(obj); //
obj.setAttribute('class',c);
c = null; try { delete this.arr; } catch(e) { /* some browsers crash */ }
return false;
}; // $t$
function dumm(tag) { alert('Tag <'+tag+'> clicked');return false; }; //#? called when no click expected
function dbx_tree(obj,i) {//#? print functions tree from object
var txt = '';
var ident = '';
for (var a=0; a<i; a++) { ident += ' '; }
for(var property in obj) {
var type = typeof(obj[property]);
switch (type) {
case 'function': break;
case 'object': break;
case 'undefined': txt += ident + property + ':\tUNDEF;\n'; break;
default: // boolean, number, string
if (type === 'string') { type = '"' + obj[property].valueOf() + '"'; }
txt += ident + property + ':\t' + type + ';\n';
break;
}
continue;
}
for(var property in obj) {
var type = typeof(obj[property]);
switch (type) {
case 'function':
f = obj[property] + "";
f = f.replace(/(\r\n|\r|\n[\s\S]*)/gm, ' }\n'); // line with "function" only
f = f.replace(/([{]\s*[\r\n])/, '{}');// pretty print
f = f.replace(/([)]\s*)/, ')\t'); // pretty print
txt += ident + property + ':\t' + f;
break;
case 'object':
txt += ident + property + ':\t{\n' + dbx_tree(obj[property], i+1) + ident + '};\n';
break;
case 'boolean':
case 'number':
case 'string':
break;
default: // boolean, number, string
txt += ident + property + ':\t' + type + '?;\n';
break;
}
continue;
}
return txt;
}; // dbx_tree
// JavaScript used in this file only
window.EMiR = function() { //#? EMiR object
function $(id) { return document.getElementById(id); }
var debug = {
// debugging is enabled if max_tags or max_events > 0
'max_tags': 0, // set >0 to use tags.debug
'max_events': 0, // set >0 to use events.debug
}; // debug
var events = {
/*
* for a description of the sub-hashes used here, see below in
* w3c, categories
*/
'w3c': { // well known categories
// hash labels here must be the same as hash labels following categories{}
'HTML 4': {desc:'w3c events: HTML 4',
url:'http://www.w3.org/TR/html4/interact/scripts.html#adef-'},
'HTML 5': {desc:'w3c events: HTML 5',
url:'http://www.w3.org/TR/html5/browsers.html#events-handler-attributes-on-elements-document-objects-and-window-objects'},
//see also: url:'http://dev.w3.org/html5/spec/Overview.html',
' ': {desc:'reset all highlights', url:''},
'DOM Level 2': {desc:'w3c events: DOM Level 2',
url:'http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-eventgroupings'},
//see also: url:'http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.html',
'DOM Level 3': {desc:'w3c events: DOM Level 3',
url:'http://www.w3.org/TR/DOM-Level-3-Events/events.html#Events-EventTypes-complete'}
}, // w3c
'categories': {
'debug': {desc:'events used for debugging', url:''},
'all': {desc:'all category, standard w3c and proprietary', url:''},
'Form': {desc:'common w3c events: category HTML form', url:''},
'Keys': {desc:'common w3c events: category Keyboard', url:''},
'Mouse': {desc:'common w3c events: category Mouse', url:''},
'Mutation': {desc:'common w3c events: category Mutation', url:''},
'Object': {desc:'common w3c events: category HTML frame/object',url:''},
'Pointer': {desc:'common w3c events: category Pointer', url:'https://en.wikipedia.org/wiki/DOM_events'},
'Progress': {desc:'common w3c events: category Progress', url:'https://en.wikipedia.org/wiki/DOM_events'},
'Touch': {desc:'common w3c events: category Touch', url:'https://en.wikipedia.org/wiki/DOM_events'},
'User': {desc:'common w3c events: category User Interface', url:''},
'Indie': {desc:'see https://en.wikipedia.org/wiki/DOM_events',url:'https://en.wikipedia.org/wiki/DOM_events'},
' ': {desc:'reset all highlights', url:''},
/* reset is a empty tab used as separartor
* it serves as "reset" automatically ;-) */
//'browsers':
'Opera': {desc:'spezial Opera events', url:''},
'Safari': {desc:'spezial Safari events', url:''},
'Firefox3': {desc:'spezial Firfox 3 events', url:''},
'Firefox4': {desc:'spezial Firfox 4 events', url:''},
'IE': {desc:'spezial IE events', url:'https://en.wikipedia.org/wiki/DOM_events'},
'Webkit': {desc:'spezial Webkit events', url:''},
' ': {desc:'(spacer, no content)', url:''},
'iOS': {desc:'spezial iOS (Safari) events', url:''},
'Android': {desc:'spezial Android events', url:''},
'XUL': {desc:'spezial Mozilla XUL elements events', url:'https://en.wikipedia.org/wiki/DOM_events'},
'unsorted': {desc:'spezial events (mainly Mozilla)', url:'https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ https://developer.mozilla.org/en-US/docs/Web/API/Element/'}
}, // categories
/*
* # TODO: move some texts here to the public description in HTML
* Some notes on names of hashes:
* - Each of following hashes should be described above in:
* w3c or categories.
* - Sequence of following hashes is important for display.
* Some notes on names of events:
* - Spelling must be identical in all hashes.
* - Case-sensitive events are marked with "case-sensitive!".
* - Some events are marked with "typo?", because unsure if
* they are used in that spelling.
* - Some events in following categories are defined twice:
* with and without * prefix "on", for example in 'User'.
* - Some events are not intended to be used as attribute in
* HTML tags, but solely exist in the HavaScript implemen-
* tation of a browser, they are marked "native JavaScript"
* and listed here, because they are sometimes accessable
* with the attribute too.
*/
'debug': { // only used if debug.max_events > 0
'onClick': null,
'onKeyUp': null,
'onMouseOut': null,
'onKeyDown': null,
'onKeyPress': null,
'onMouseEnter': null,
'onMouseLeave': null
}, // debug
/*
'todo-2020': {
'altKey': null, //
'animationName': null, //
'bubbles': null, //
'button': null, //
'buttons': null, //
'cancelable': null, //
'charCode': null, //
'changeTouches': null, //
'clientX': null, //
'clientY': null, //
'clipboardData': null, //
'code': null, //
'composed': null, //
'createEvent': null, //
'ctrlKey': null, //
'currentTarget': null, //
'data': null, //
'dataTdefaultPrevented': null, //
'deltaX': null, //
'deltaY': null, //
'deltaZ': null, //
'deltaMode': null, //
'detail': null, //
'elapsedTime': null, //
'elapsedTime': null, //
'eventPhase': null, //
'getTargetRanges': null, //
'getModifierState': null, //
'inputType': null, //
'isComposing': null, //
'isTrusted': null, //
'key': null, //
'keyCode': null, //
'location': null, //
'lengthComputable': null, //
'loaded': null, //
'metaKey': null, //
'MovementX': null, //
'MovementY': null, //
'newValue': null, //
'newURL': null, //
'offsetX': null, //
'offsetY': null, //
'oldValue': null, //
'oldURL': null, //
'pageX': null, //
'pageY': null, //
'persisted': null, //
'preventDefault': null, //
'propertyName': null, //
'pseudoElement': null, //
'region': null, //
'relatedTarget': null, //
'repeat': null, //
'screenX': null, //
'screenY': null, //
'shiftKey': null, //
'state': null, //
'stopImmediatePropagation': null, //
'stopPropagation': null, //
'storageArea': null, //
'target': null, //
'targetTouches': null, //
'timeStamp': null, //
'total': null, //
'touches': null, //
'type': null, //
'url': null, //
'which': null, //
'view': null //
}, // todo-2020
*/
'all': { //# emir__EVENTS__
// only events not specifid elsewhere # TODO
'FSCommand': null, // SWF only
'onBegin': null,
'onControlSelect': null,
'onEnd': null,
'onExit': null,
'onMediaComplete': null,
'onMediaError': null,
'onRepeat': null,
'onResume': null,
'onReverse': null,
'onRowDelete': null, // typo?
'onRowInserted': null, // typo?
'onSeek': null,
'onSyncRestored': null,
'onSynchRestored': null, // typo?
'onTimeError': null,
'onTimeuout': null, // typo?
'onTimeUpdate': null,
'onTrackChange': null,
'onURLFlip': null,
'seekSegmentTime': null
// ...
// all others will be added dynamically in init()
}, // all
'HTML 4': {
'onBlur': null,
'onChange': null,
'onClick': null,
'onDblClick': null,
'onFocus': null,
'onKeyDown': null,
'onKeyPress': null,
'onKeyUp': null,
'onLoad': null,
'onMouseDown': null,
'onMouseMove': null,
'onMouseOut': null,
'onMouseOver': null,
'onMouseUp': null,
'onReset': null,
'onSelect': null,
'onSubmit': null,
'onUnload': null
}, // HTML 4
'HTML 5': {
//objects: {'document':null, 'window':null },
'onAuxClick': null, //# unknown ??
'onAbort': null,
'onAfterPrint': null,
'onBeforePrint': null,
'onBeforeUnload': null,
'onBlur': null,
'onCanPlay': null,
'onCanPlayThrough': null,
'onChange': null,
'onClick': null,
'onCompositionEnd': null, //# unknown ??
'onCompositionStart':null, //# unknown ??
'onCompositionUpdate': null, //# unknown ??
'onContextMenu': null,
'onCueChange': null, //# unknown ??
'onDblClick': null,
'onDrag': null,
'onDragEnd': null,
'onDragEnter': null,
'onDragLeave': null,
'onDragOver': null,
'onDragStart': null,
'onDrop': null,
'onDurationChange': null,
'onEmtied': null,
'onEnded': null,
'onError': null,
'onFocus': null,
'onFormChange': null,
'onFormData': null, //# unknown ??
'onFormInput': null,
'onHashChange': null,
'onInvalid': null,
'onLoad': null,
'onLoadedData': null,
'onLoadedMetaData': null,
'onLoadStart': null,
'onKeyDown': null,
'onKeyPress': null,
'onKeyUp': null,
'onMessage': null,
'onMouseDown': null,
'onMouseMove': null,
'onMouseOut': null,
'onMouseOver': null,
'onMouseUp': null,
'onMouseWheel': null,
'onOffline': null,
'onOnline': null,
'onPause': null,
'onPlay': null,
'onPlaying': null,
'onGotPointerCapture': null, //# unknown ??
'onLostPointerCapture':null, //# unknown ??
'onPointerCancel': null, //# unknown ??
'onPointerCenter': null, //# unknown ??
'onPointerDown': null, //# unknown ??
'onPointerEnter': null, //# unknown ??
'onPointerLeave': null, //# unknown ??
'onPointerMove': null, //# unknown ??
'onPointerOut': null, //# unknown ??
'onPointerOver': null, //# unknown ??
'onPointerRawUpdate':null, //# unknown ??
'onPointerUp': null, //# unknown ??
'onPopState': null,
'onProgress': null,
'onRateChange': null,
'onReadyStateChange':null,
'onRedo': null,
'onReset': null, // missing?
'onResize': null,
'onScroll': null,
'onSeeked': null,
'onSeeking': null,
'onSelect': null,
'onShow': null,
'onStalled': null,
'onStorage': null,
'onSubmit': null,
'onSuspend': null,
'onTimeupdate': null,
'onVolumeChange': null,
'onWaiting': null,
'onUndo': null,
'onUnload': null // missing?
}, // HTML 5
'DOM Level 2': {
'onAbort': null,
'onBlur': null,
'onChange': null,
'onClick': null,
'onDOMActivate': null,
'onDOMAttrModified': null,
'onDOMCharacterDataModified': null,
'onDOMFocusIn': null,
'onDOMFocusOut': null,
'onDOMNodeInserted': null,
'onDOMNodeInsertedIntoDocument': null,
'onDOMNodeRemoved': null,
'onDOMNodeRemovedFromDocument': null,
'onDOMSubTreeModified': null,
'onError': null,
'onFocus': null,
'onLoad': null,
'onMouseDown': null,
'onMouseMove': null,
'onMouseOut': null,
'onMouseOver': null,
'onMouseUp': null,
'onReset': null,
'onResize': null,
'onScroll': null,
'onSelect': null,
'onSubmit': null,
'onUnload': null
}, // DOM Level 2
'DOM Level 3': {
'onAuxClick': null, //# unknown ??
'onAbort': null,
'onBlur': null,
'onChange': null,
'onClick': null,
'onCompositionEnd': null, //# unknown ??
'onCompositionStart':null, //# unknown ??
'onCompositionUpdate': null, //# unknown ??
'onCueChange': null, //# unknown ??
'onDblClick': null,
'onDOMActivate': null,
'onDOMAttrModified': null,
'onDOMAttributeNameChanged': null,
'onDOMCharacterDataModified': null,
'onDOMElementNameChanged': null,
'onDOMFocusIn': null,
'onDOMFocusOut': null,
'onDOMNodeInserted': null,
'onDOMNodeInsertedIntoDocument': null,
'onDOMNodeRemoved': null,
'onDOMNodeRemovedFromDocument': null,
'onDOMSubTreeModified':null,
'onError': null,
'onFocus': null,
'onFormData': null,
'onKeyDown': null,
'onKeyUp': null,
'onLoad': null,
'onMouseDown': null,
'onMouseMove': null,
'onMouseMultiWheel': null,
'onMouseOut': null,
'onMouseOver': null,
'onMouseUp': null,
'onMouseWheel': null,
'onGotPointerCapture': null,
'onLostPointerCapture':null,
'onPointerCancel': null,
'onPointerCenter': null,
'onPointerDown': null,
'onPointerEnter': null,
'onPointerLeave': null,
'onPointerMove': null,
'onPointerOut': null,
'onPointerOver': null,
'onPointerRawUpdate':null,
'onPointerUp': null,
'onReset': null,
'onResize': null,
'onScroll': null,
'onSelect': null,
'onSubmit': null,
'onTextInput': null,
'onUnload': null
}, // DOM Level 3
'Object': {
'onAbort': null,
'onError': null,
'onChange': null,
'onLoad': null,
'onReset': null,
'onResize': null, // or User Interface?
'onSave': null,
'onScroll': null, // or User Interface?
'onSelect': null,
'onSubmit': null,
'onUnload': null
}, // Object
'Keys': {
'onKeyDown': null,
'onKeyPress': null,
'onKeyUp': null
}, // Keys
'Form': {
'onBlur': null,
'onChange': null,
'onFocus': null,
'onReset': null,
'onSelect': null,
'onSubmit': null
}, // Form
'Mouse': {
'onClick': null,
'onDblClick': null,
'onMouseDown': null,
'onMouseMove': null,
'onMouseOut': null,
'onMouseOver': null,
'onMouseUp': null,
'onMouseMultiWheel': null,
'onMouseWheel': null
}, // Mouse
'Mutation': {
'DOMAttrModified': null,
'DOMCharacterDataModified': null,
'DOMNodeInsertedIntoDocument': null,
'DOMNodeRemovedFromDocument': null,
'DOMSubtreeModified':null,
'onSubTreeModified': null, // typo?
'SubTreeModified': null, // typo?
'onAttrModified': null, // typo?
'onCharacterDataModified': null, // typo?
'onNodeInserted': null, // typo?
'onNodeRemoved': null, // typo?
'onDOMAttrModified': null,
'onDOMCharacterDataModified': null,
'onDOMNodeInsertedIntoDocument': null,
'onDOMNodeRemovedFromDocument': null,
'onDOMSubTreeModified':null,
}, // Mutation
'Pointer': {
'onGotPointerCapture': null,
'onLostPointerCapture': null,
'onPointerCancel': null,
'onPointerCenter': null,
'onPointerDown': null,
'onPointerEnter': null,
'onPointerLeave': null,
'onPointerMove': null,
'onPointerOut': null,
'onPointerOver': null,
'onPointerRawUpdate':null,
'onPointerUp': null,
}, // Pointer
'Progress': {
'Abort': null,
'error': null,
'load': null,
'loadend': null,
'loadstart': null,
'progress': null,
'onAbort': null,
'onError': null,
'onLoad': null,
'onLoadEnd': null,
'onLoadStart': null,
'onProgress': null,
}, // Progress
'Touch': {
'ontouchcancel': null,
'ontouchend': null,
'ontouchenter': null,
'ontouchmove': null,
'ontouchleave': null,
'ontouchstart': null
}, // Touch
'User': {
'focusin': null,
'focusout': null,
'DOMActivate': null,
'ongesturechange': null,
'ongestureend': null,
'ongesturestart': null,
'onDOMFocusIn': null,
'onDOMFocusOut': null,
'onDOMActivate': null,
'onBlur': null,
'onFocus': null,
'onResize': null, // or Object?
'onScroll': null, // or Object?
'onTextInput': null // also Text Event
}, // User
'Indie': {
'collapserequest': null,
'deleterequest': null,
'dismissrequest': null,
'expandrequest': null,
'redorequest': null,
'undorequest': null,
'directionalfocusrequest': null,
'linearfocusrequest':null,
'palettefocusrequest': null,
'toolbarfocusrequest': null,
'moverequest': null,
'panrequest': null,
'rotationrequest': null,
'zoomrequest': null,
'scrollrequest': null,
'valuechangerequest':null,
}, // Indie
' ': {},
'Safari': { // 11/2009
'onBeforeCopy': null,
'onBeforeCut': null,
'onBeforePaste': null,
'onBlur': null,
'onClick': null,
'onContextMenu': null,
'onCopy': null,
'onCut': null,
'onDblClick': null,
'onDrag': null,
'onDragDrop': null,
'onDragEnd': null,
'onDragEnter': null,
'onDragLeave': null,
'onDragOver': null,
'onDragStart': null,
'onDrop': null,
'onError': null,
'onFocus': null,
'onKeyDown': null,
'onKeyPress': null,
'onKeyUp': null,
'onLoad': null,
'onMouseDown': null,
'onMouseMove': null,
'onMouseOut': null,
'onMouseOver': null,
'onMouseUp': null,
'onMove': null,
'onOffline': null,
'onOnline': null,
'onOutOfSync': null,
'onSelectStart': null,
'onSubmit': null,
'onUnload': null
}, // Safari
'Firefox3': { // 11/2009
'onBack': null,
'onForward': null,
'onLocate': null,
'onMouseDrag': null,
'onText': null,
'onXfer_Done': null
}, // Firefox3
'Firefox4': { // 11/2009
'onAfterScriptExecute': null,
'onBeforeScriptExecute': null,
'onWheel': null
}, // Firefox4
'IE': { // 11/2009
'msVisibilityChange':null, // IE9 ??
'onActivate': null,
'onAfterPrint': null, // Misc.
'onAfterUpdate': null, // Data Binding
'onBeforeActivate': null,
'onBeforeCopy': null, // Clipboard
'onBeforeCut': null, // Clipboard
'onBeforeDeactivate':null,
'onBeforeEditFocus': null, // Form
'onBeforePaste': null, // Clipboard
'onBeforePrint': null, // Misc.
'onBeforeUnload': null, // Object
'onBeforeUpdate': null, // Data Binding
'onBlur': null,
'onBounce': null, // Marquee
'onCellChange': null, // Data Binding
'onChange': null,
'onClick': null,
'oncontentsave': null, // HTC Context; case sensitive
'oncontentready': null, // HTC Context; case sensitive
'onContextMenu': null, // Mouse
'onCopy': null, // Clipboard
'onCut': null, // Clipboard
'onDataAvailable': null, // Data Binding
'onDataSetChanged': null, // Data Binding
'onDataSetComplete': null, // Data Binding
'onDblClick': null,
'onDeactivate': null,
'ondetach': null, // HTC Context; case sensitive
'ondocumentready': null, // HTC Context; case sensitive
'onDrag': null, // Mouse
'onDragDrop': null, // Mouse ??
'onDragEnd': null, // Mouse
'onDragEnter': null, // Mouse
'onDragLeave': null, // Mouse
'onDragOver': null, // Mouse
'onDragStart': null, // Mouse
'onDrop': null, // Mouse
'onError': null,
'onErrorUpdate': null, // Data Binding
'onFilterChange': null, // Misc.
'onFinish': null, // Marquee
'onFocus': null,
'onFocusIn': null,
'onFocusOut': null,
'onHelp': null, // Keyboard
'onhide': null, // case-sensitive! (IE)
'onKeyDown': null,
'onKeyPress': null,
'onKeyUp': null,
'onLayoutComplete': null,
'onLoad': null,
'onLoseCapture': null, // Misc.
'onMouseDown': null,
'onMouseEnter': null,
'onMouseLeave': null,
'onMouseMove': null,
'onMouseOut': null,
'onMouseOver': null,
'onMouseUp': null,
'onMouseWheel': null,
'onmove': null, // case-sensitive!
'onMoveEnd': null,
'onMoveStart': null,
'onmsGestureChange': null, // IE9 ??
'onmsGestureDoubleTap':null, // IE9 ??
'onmsGestureEnd': null, // IE9 ??
'onmsGestureHold': null, // IE9 ??
'onmsGestureStart': null, // IE9 ??
'onmsGestureTap': null, // IE9 ??
'onmsSiteModeJumpListitemRemoved': null, // IE9 ??
'onmsSiteModeShowJumpList': null, // IE9 ??
'onmsThumbnailClick':null, // IE9 ??
'onOffline': null, // IE9 ??
'onopenstatechanged':null, // case-sensitive! (IE)
'onOnline': null, // IE9 ??
'onPage': null, // IE9 ??
'onPaste': null, // IE9 ??
'onPause': null, // IE9 ??
'onPlay': null, // IE9 ??
'onPlaying': null, // IE9 ??
'onplaystatechange': null, // case-sensitive! (IE)
'onPopState': null, // IE9 ??
'onProgress': null, // IE9 ??
'onPropertyChange': null, // Misc.
'onRateChange': null, // IE9 ??
'onReadyStateChange':null, // Misc.
'onReset': null,
'onResize': null,
'onResizeEnd': null, // IE9 ??
'onResizeStart': null, // IE9 ??
'onRowEnter': null, // Data Binding
'onRowExit': null, // Data Binding
'onRowsDelete': null, // Data Binding
'onRowsInserted': null, // Data Binding
'onsave': null, // case-sensitive?
'onScroll': null,
'onSeeked': null, // IE9 ??
'onSeeking': null, // IE9 ??
'onSelect': null, // IE9 ??
'onSelectionChange': null, // IE9 ??
'onSelectStart': null, // Mouse
'onshow': null, // case-sensitive?
'onStalled': null, // IE9 ??
'onStart': null, // Marquee
'onStop': null, // Object
'onStorage': null, // IE9 ??
'onStorageCommit': null, // IE9 ??
'onSubmit': null, // IE9 ??
'onSuspend': null, // IE9 ??
'ontimeout': null, // IE9 ?? XHR Context; case sensitive
'onTimeupdate': null, // IE9 ??
'onUnload': null,
'onVolumeChange': null, // IE9 ??
'onWaiting': null, // IE9 ??
'anchorClick': null, // IE behavior
'saveFavorite': null, // IE behavior
'saveHistory': null, // IE behavior
'saveSnapshot': null // IE behavior