!import
(0 calls, 0 incl. v-uS, 0 excl. v-uS)
1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
3 *
4 * The contents of this file are subject to the Mozilla Public License Version
5 * 1.1 (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/
8 *
9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 * for the specific language governing rights and limitations under the
12 * License.
13 *
14 * The Original Code is Mozilla Communicator client code, released
15 * March 31, 1998.
16 *
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 1998-2001
20 * the Initial Developer. All Rights Reserved.
21 *
22 * Contributor(s):
23 * Beth Epperson
24 *
25 * Alternatively, the contents of this file may be used under the terms of
26 * either of the GNU General Public License Version 2 or later (the "GPL"),
27 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 * in which case the provisions of the GPL or the LGPL are applicable instead
29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the MPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the MPL, the GPL or the LGPL.
36 *
37 * ***** END LICENSE BLOCK ***** */
38
39 // HTML Attributes object for "Name" menulist
40 var gHTMLAttr = {};
41
42 // JS Events Attributes object for "Name" menulist
43 var gJSAttr = {};
44
45
46 // Core HTML attribute values //
47 // This is appended to Name menulist when "_core" is attribute name
48 var gCoreHTMLAttr =
49 [
50 "^id",
51 "class",
52 "title"
53 ];
54
55 // Core event attribute values //
56 // This is appended to all JS menulists
57 // except those elements having "noJSEvents"
58 // as a value in their gJSAttr array.
59 var gCoreJSEvents =
60 [
61 "onclick",
62 "ondblclick",
63 "onmousedown",
64 "onmouseup",
65 "onmouseover",
66 "onmousemove",
67 "onmouseout",
68 "-",
69 "onkeypress",
70 "onkeydown",
71 "onkeyup"
72 ];
73
74 // Following are commonly-used strings
75
76 // Alse accept: sRGB: #RRGGBB //
77 var gHTMLColors =
78 [
79 "Aqua",
80 "Black",
81 "Blue",
82 "Fuchsia",
83 "Gray",
84 "Green",
85 "Lime",
86 "Maroon",
87 "Navy",
88 "Olive",
89 "Purple",
90 "Red",
91 "Silver",
92 "Teal",
93 "White",
94 "Yellow"
95 ];
96
97 var gHAlign =
98 [
99 "left",
100 "center",
101 "right"
102 ];
103
104 var gHAlignJustify =
105 [
106 "left",
107 "center",
108 "right",
109 "justify"
110 ];
111
112 var gHAlignTableContent =
113 [
114 "left",
115 "center",
116 "right",
117 "justify",
118 "char"
119 ];
120
121 var gVAlignTable =
122 [
123 "top",
124 "middle",
125 "bottom",
126 "baseline"
127 ];
128
129 var gTarget =
130 [
131 "_blank",
132 "_self",
133 "_parent",
134 "_top"
135 ];
136
137 // ================ HTML Attributes ================ //
138 /* For each element, there is an array of attributes,
139 whose name is the element name,
140 used to fill the "Attribute Name" menulist.
141 For each of those attributes, if they have a specific
142 set of values, those are listed in an array named:
143 "elementName_attName".
144
145 In each values string, the following characters
146 are signal to do input filtering:
147 "#" Allow only integer values
148 "%" Allow integer values or a number ending in "%"
149 "+" Allow integer values and allow "+" or "-" as first character
150 "!" Allow only one character
151 "^" The first character can be only be A-Z, a-z, hyphen, underscore, colon or period
152 "$" is an attribute required by HTML DTD
153 */
154
155 /*
156 Most elements have the "dir" attribute,
157 so we use this value array
158 for all elements instead of specifying
159 separately for each element
160 */
161 gHTMLAttr.all_dir =
162 [
163 "ltr",
164 "rtl"
165 ];
166
167
168 gHTMLAttr.a =
169 [
170 "charset",
171 "type",
172 "name",
173 "href",
174 "^hreflang",
175 "target",
176 "rel",
177 "rev",
178 "!accesskey",
179 "shape", // with imagemap //
180 "coords", // with imagemap //
181 "#tabindex",
182 "-",
183 "_core",
184 "-",
185 "^lang",
186 "dir"
187 ];
188
189 gHTMLAttr.a_target = gTarget;
190
191 gHTMLAttr.a_rel =
192 [
193 "alternate",
194 "stylesheet",
195 "start",
196 "next",
197 "prev",
198 "contents",
199 "index",
200 "glossary",
201 "copyright",
202 "chapter",
203 "section",
204 "subsection",
205 "appendix",
206 "help",
207 "bookmark"
208 ];
209
210 gHTMLAttr.a_rev =
211 [
212 "alternate",
213 "stylesheet",
214 "start",
215 "next",
216 "prev",
217 "contents",
218 "index",
219 "glossary",
220 "copyright",
221 "chapter",
222 "section",
223 "subsection",
224 "appendix",
225 "help",
226 "bookmark"
227 ];
228
229 gHTMLAttr.a_shape =
230 [
231 "rect",
232 "circle",
233 "poly",
234 "default"
235 ];
236
237 gHTMLAttr.abbr =
238 [
239 "_core",
240 "-",
241 "^lang",
242 "dir"
243 ];
244
245 gHTMLAttr.acronym =
246 [
247 "_core",
248 "-",
249 "^lang",
250 "dir"
251 ];
252
253 gHTMLAttr.address =
254 [
255 "_core",
256 "-",
257 "^lang",
258 "dir"
259 ];
260
261 // this is deprecated //
262 gHTMLAttr.applet =
263 [
264 "codebase",
265 "archive",
266 "code",
267 "object",
268 "alt",
269 "name",
270 "%$width",
271 "%$height",
272 "align",
273 "#hspace",
274 "#vspace",
275 "-",
276 "_core"
277 ];
278
279 gHTMLAttr.applet_align =
280 [
281 "top",
282 "middle",
283 "bottom",
284 "left",
285 "right"
286 ];
287
288 gHTMLAttr.area =
289 [
290 "shape",
291 "coords",
292 "href",
293 "nohref",
294 "target",
295 "$alt",
296 "#tabindex",
297 "!accesskey",
298 "-",
299 "_core",
300 "-",
301 "^lang",
302 "dir"
303 ];
304
305 gHTMLAttr.area_target = gTarget;
306
307 gHTMLAttr.area_shape =
308 [
309 "rect",
310 "circle",
311 "poly",
312 "default"
313 ];
314
315 gHTMLAttr.area_nohref =
316 [
317 "nohref"
318 ];
319
320 gHTMLAttr.b =
321 [
322 "_core",
323 "-",
324 "^lang",
325 "dir"
326 ];
327
328 gHTMLAttr.base =
329 [
330 "href",
331 "target"
332 ];
333
334 gHTMLAttr.base_target = gTarget;
335
336 // this is deprecated //
337 gHTMLAttr.basefont =
338 [
339 "^id",
340 "$size",
341 "color",
342 "face"
343 ];
344
345 gHTMLAttr.basefont_color = gHTMLColors;
346
347 gHTMLAttr.bdo =
348 [
349 "_core",
350 "-",
351 "^lang",
352 "$dir"
353 ];
354
355 gHTMLAttr.bdo_dir =
356 [
357 "ltr",
358 "rtl"
359 ];
360
361 gHTMLAttr.big =
362 [
363 "_core",
364 "-",
365 "^lang",
366 "dir"
367 ];
368
369 gHTMLAttr.blockquote =
370 [
371 "cite",
372 "-",
373 "_core",
374 "-",
375 "^lang",
376 "dir"
377 ];
378
379 gHTMLAttr.body =
380 [
381 "background",
382 "bgcolor",
383 "text",
384 "link",
385 "vlink",
386 "alink",
387 "-",
388 "_core",
389 "-",
390 "^lang",
391 "dir"
392 ];
393
394 gHTMLAttr.body_bgcolor = gHTMLColors;
395
396 gHTMLAttr.body_text = gHTMLColors;
397
398 gHTMLAttr.body_link = gHTMLColors;
399
400 gHTMLAttr.body_vlink = gHTMLColors;
401
402 gHTMLAttr.body_alink = gHTMLColors;
403
404 gHTMLAttr.br =
405 [
406 "clear",
407 "-",
408 "_core"
409 ];
410
411 gHTMLAttr.br_clear =
412 [
413 "none",
414 "left",
415 "all",
416 "right"
417 ];
418
419 gHTMLAttr.button =
420 [
421 "name",
422 "value",
423 "$type",
424 "disabled",
425 "#tabindex",
426 "!accesskey",
427 "-",
428 "_core",
429 "-",
430 "^lang",
431 "dir"
432 ];
433
434 gHTMLAttr.button_type =
435 [
436 "submit",
437 "button",
438 "reset"
439 ];
440
441 gHTMLAttr.button_disabled =
442 [
443 "disabled"
444 ];
445
446 gHTMLAttr.caption =
447 [
448 "align",
449 "-",
450 "_core",
451 "-",
452 "^lang",
453 "dir"
454 ];
455
456 gHTMLAttr.caption_align =
457 [
458 "top",
459 "bottom",
460 "left",
461 "right"
462 ];
463
464
465 // this is deprecated //
466 gHTMLAttr.center =
467 [
468 "_core",
469 "-",
470 "^lang",
471 "dir"
472 ];
473
474 gHTMLAttr.cite =
475 [
476 "_core",
477 "-",
478 "^lang",
479 "dir"
480 ];
481
482 gHTMLAttr.code =
483 [
484 "_core",
485 "-",
486 "^lang",
487 "dir"
488 ];
489
490 gHTMLAttr.col =
491 [
492 "#$span",
493 "%width",
494 "align",
495 "!char",
496 "#charoff",
497 "valign",
498 "char",
499 "-",
500 "_core",
501 "-",
502 "^lang",
503 "dir"
504 ];
505
506 gHTMLAttr.col_span =
507 [
508 "1" // default
509 ];
510
511 gHTMLAttr.col_align = gHAlignTableContent;
512
513 gHTMLAttr.col_valign =
514 [
515 "top",
516 "middle",
517 "bottom",
518 "baseline"
519 ];
520
521
522 gHTMLAttr.colgroup =
523 [
524 "#$span",
525 "%width",
526 "align",
527 "!char",
528 "#charoff",
529 "valign",
530 "-",
531 "_core",
532 "-",
533 "^lang",
534 "dir"
535 ];
536
537 gHTMLAttr.colgroup_span =
538 [
539 "1" // default
540 ];
541
542 gHTMLAttr.colgroup_align = gHAlignTableContent;
543
544 gHTMLAttr.colgroup_valign =
545 [
546 "top",
547 "middle",
548 "bottom",
549 "baseline"
550 ];
551
552 gHTMLAttr.dd =
553 [
554 "_core",
555 "-",
556 "^lang",
557 "dir"
558 ];
559
560 gHTMLAttr.del =
561 [
562 "cite",
563 "datetime",
564 "_core",
565 "-",
566 "^lang",
567 "dir"
568 ];
569
570 gHTMLAttr.dfn =
571 [
572 "_core",
573 "-",
574 "^lang",
575 "dir"
576 ];
577
578 // this is deprecated //
579 gHTMLAttr.dir =
580 [
581 "compact",
582 "-",
583 "_core",
584 "-",
585 "^lang",
586 "dir"
587 ];
588
589 gHTMLAttr.dir_compact =
590 [
591 "compact"
592 ];
593
594 gHTMLAttr.div =
595 [
596 "align",
597 "-",
598 "_core",
599 "-",
600 "^lang",
601 "dir"
602 ];
603
604 gHTMLAttr.div_align = gHAlignJustify;
605
606 gHTMLAttr.dl =
607 [
608 "compact",
609 "-",
610 "_core",
611 "-",
612 "^lang",
613 "dir"
614 ];
615
616 gHTMLAttr.dl_compact =
617 [
618 "compact"
619 ];
620
621
622 gHTMLAttr.dt =
623 [
624 "_core",
625 "-",
626 "^lang",
627 "dir"
628 ];
629
630 gHTMLAttr.em =
631 [
632 "_core",
633 "-",
634 "^lang",
635 "dir"
636 ];
637
638 gHTMLAttr.fieldset =
639 [
640 "_core",
641 "-",
642 "^lang",
643 "dir"
644 ];
645
646 // this is deprecated //
647 gHTMLAttr.font =
648 [
649 "+size",
650 "color",
651 "face",
652 "-",
653 "_core",
654 "-",
655 "^lang",
656 "dir"
657 ];
658
659 gHTMLAttr.font_color = gHTMLColors;
660
661 gHTMLAttr.form =
662 [
663 "$action",
664 "$method",
665 "enctype",
666 "accept",
667 "name",
668 "accept-charset",
669 "target",
670 "-",
671 "_core",
672 "-",
673 "^lang",
674 "dir"
675 ];
676
677 gHTMLAttr.form_method =
678 [
679 "get",
680 "post"
681 ];
682
683 gHTMLAttr.form_enctype =
684 [
685 "application/x-www-form-urlencoded"
686 ];
687
688 gHTMLAttr.form_target = gTarget;
689
690 gHTMLAttr.frame =
691 [
692 "longdesc",
693 "name",
694 "src",
695 "#frameborder",
696 "#marginwidth",
697 "#marginheight",
698 "noresize",
699 "$scrolling"
700 ];
701
702 gHTMLAttr.frame_frameborder =
703 [
704 "1",
705 "0"
706 ];
707
708 gHTMLAttr.frame_noresize =
709 [
710 "noresize"
711 ];
712
713 gHTMLAttr.frame_scrolling =
714 [
715 "auto",
716 "yes",
717 "no"
718 ];
719
720
721 gHTMLAttr.frameset =
722 [
723 "rows",
724 "cols",
725 "-",
726 "_core"
727 ];
728
729 gHTMLAttr.h1 =
730 [
731 "align",
732 "-",
733 "_core",
734 "-",
735 "^lang",
736 "dir"
737 ];
738
739 gHTMLAttr.h1_align = gHAlignJustify;
740
741 gHTMLAttr.h2 =
742 [
743 "align",
744 "-",
745 "_core",
746 "-",
747 "^lang",
748 "dir"
749 ];
750
751 gHTMLAttr.h2_align = gHAlignJustify;
752
753 gHTMLAttr.h3 =
754 [
755 "align",
756 "-",
757 "_core",
758 "-",
759 "^lang",
760 "dir"
761 ];
762
763 gHTMLAttr.h3_align = gHAlignJustify;
764
765 gHTMLAttr.h4 =
766 [
767 "align",
768 "-",
769 "_core",
770 "-",
771 "^lang",
772 "dir"
773 ];
774
775 gHTMLAttr.h4_align = gHAlignJustify;
776
777
778 gHTMLAttr.h5 =
779 [
780 "align",
781 "-",
782 "_core",
783 "-",
784 "^lang",
785 "dir"
786 ];
787
788 gHTMLAttr.h5_align = gHAlignJustify;
789
790 gHTMLAttr.h6 =
791 [
792 "align",
793 "-",
794 "_core",
795 "-",
796 "^lang",
797 "dir"
798 ];
799
800 gHTMLAttr.h6_align = gHAlignJustify;
801
802 gHTMLAttr.head =
803 [
804 "profile",
805 "-",
806 "^lang",
807 "dir"
808 ];
809
810 gHTMLAttr.hr =
811 [
812 "align",
813 "noshade",
814 "#size",
815 "%width",
816 "-",
817 "_core",
818 "-",
819 "^lang",
820 "dir"
821 ];
822
823 gHTMLAttr.hr_align = gHAlign;
824
825 gHTMLAttr.hr_noshade =
826 [
827 "noshade"
828 ];
829
830
831 gHTMLAttr.html =
832 [
833 "version",
834 "-",
835 "^lang",
836 "dir"
837 ];
838
839 gHTMLAttr.i =
840 [
841 "_core",
842 "-",
843 "^lang",
844 "dir"
845 ];
846
847 gHTMLAttr.iframe =
848 [
849 "longdesc",
850 "name",
851 "src",
852 "$frameborder",
853 "marginwidth",
854 "marginheight",
855 "$scrolling",
856 "align",
857 "%height",
858 "%width",
859 "-",
860 "_core"
861 ];
862
863 gHTMLAttr.iframe_frameborder =
864 [
865 "1",
866 "0"
867 ];
868
869 gHTMLAttr.iframe_scrolling =
870 [
871 "auto",
872 "yes",
873 "no"
874 ];
875
876 gHTMLAttr.iframe_align =
877 [
878 "top",
879 "middle",
880 "bottom",
881 "left",
882 "right"
883 ];
884
885 gHTMLAttr.img =
886 [
887 "$src",
888 "$alt",
889 "longdesc",
890 "name",
891 "%height",
892 "%width",
893 "usemap",
894 "ismap",
895 "align",
896 "#border",
897 "#hspace",
898 "#vspace",
899 "-",
900 "_core",
901 "-",
902 "^lang",
903 "dir"
904 ];
905
906 gHTMLAttr.img_ismap =
907 [
908 "ismap"
909 ];
910
911 gHTMLAttr.img_align =
912 [
913 "top",
914 "middle",
915 "bottom",
916 "left",
917 "right"
918 ];
919
920 gHTMLAttr.input =
921 [
922 "$type",
923 "name",
924 "value",
925 "checked",
926 "disabled",
927 "readonly",
928 "#size",
929 "#maxlength",
930 "src",
931 "alt",
932 "usemap",
933 "ismap",
934 "#tabindex",
935 "!accesskey",
936 "accept",
937 "align",
938 "-",
939 "_core",
940 "-",
941 "^lang",
942 "dir"
943 ];
944
945 gHTMLAttr.input_type =
946 [
947 "text",
948 "password",
949 "checkbox",
950 "radio",
951 "submit",
952 "reset",
953 "file",
954 "hidden",
955 "image",
956 "button"
957 ];
958
959 gHTMLAttr.input_checked =
960 [
961 "checked"
962 ];
963
964 gHTMLAttr.input_disabled =
965 [
966 "disabled"
967 ];
968
969 gHTMLAttr.input_readonly =
970 [
971 "readonly"
972 ];
973
974
975 gHTMLAttr.input_ismap =
976 [
977 "ismap"
978 ];
979
980
981 gHTMLAttr.input_align =
982 [
983 "top",
984 "middle",
985 "bottom",
986 "left",
987 "right"
988 ];
989
990 gHTMLAttr.ins =
991 [
992 "cite",
993 "datetime",
994 "-",
995 "_core",
996 "-",
997 "^lang",
998 "dir"
999 ];
1000
1001 gHTMLAttr.isindex =
1002 [
1003 "prompt",
1004 "-",
1005 "_core",
1006 "-",
1007 "^lang",
1008 "dir"
1009 ];
1010
1011 gHTMLAttr.kbd =
1012 [
1013 "_core",
1014 "-",
1015 "^lang",
1016 "dir"
1017 ];
1018
1019 gHTMLAttr.label =
1020 [
1021 "for",
1022 "!accesskey",
1023 "-",
1024 "_core",
1025 "-",
1026 "^lang",
1027 "dir"
1028 ];
1029
1030 gHTMLAttr.legend =
1031 [
1032 "!accesskey",
1033 "align",
1034 "-",
1035 "_core",
1036 "-",
1037 "^lang",
1038 "dir"
1039 ];
1040
1041 gHTMLAttr.legend_align =
1042 [
1043 "top",
1044 "bottom",
1045 "left",
1046 "right"
1047 ];
1048
1049 gHTMLAttr.li =
1050 [
1051 "type",
1052 "#value",
1053 "-",
1054 "_core",
1055 "-",
1056 "^lang",
1057 "dir"
1058 ];
1059
1060 gHTMLAttr.li_type =
1061 [
1062 "disc",
1063 "square",
1064 "circle",
1065 "-",
1066 "1",
1067 "a",
1068 "A",
1069 "i",
1070 "I"
1071 ];
1072
1073 gHTMLAttr.link =
1074 [
1075 "charset",
1076 "href",
1077 "^hreflang",
1078 "type",
1079 "rel",
1080 "rev",
1081 "media",
1082 "target",
1083 "-",
1084 "_core",
1085 "-",
1086 "^lang",
1087 "dir"
1088 ];
1089
1090 gHTMLAttr.link_target = gTarget;
1091
1092 gHTMLAttr.link_rel =
1093 [
1094 "alternate",
1095 "stylesheet",
1096 "start",
1097 "next",
1098 "prev",
1099 "contents",
1100 "index",
1101 "glossary",
1102 "copyright",
1103 "chapter",
1104 "section",
1105 "subsection",
1106 "appendix",
1107 "help",
1108 "bookmark"
1109 ];
1110
1111 gHTMLAttr.link_rev =
1112 [
1113 "alternate",
1114 "stylesheet",
1115 "start",
1116 "next",
1117 "prev",
1118 "contents",
1119 "index",
1120 "glossary",
1121 "copyright",
1122 "chapter",
1123 "section",
1124 "subsection",
1125 "appendix",
1126 "help",
1127 "bookmark"
1128 ];
1129
1130 gHTMLAttr.map =
1131 [
1132 "$name",
1133 "-",
1134 "_core",
1135 "-",
1136 "^lang",
1137 "dir"
1138 ];
1139
1140 gHTMLAttr.menu =
1141 [
1142 "compact",
1143 "-",
1144 "_core",
1145 "-",
1146 "^lang",
1147 "dir"
1148 ];
1149
1150 gHTMLAttr.menu_compact =
1151 [
1152 "compact"
1153 ];
1154
1155 gHTMLAttr.meta =
1156 [
1157 "http-equiv",
1158 "name",
1159 "$content",
1160 "scheme",
1161 "-",
1162 "^lang",
1163 "dir"
1164 ];
1165
1166 gHTMLAttr.noframes =
1167 [
1168 "_core",
1169 "-",
1170 "^lang",
1171 "dir"
1172 ];
1173
1174 gHTMLAttr.noscript =
1175 [
1176 "_core",
1177 "-",
1178 "^lang",
1179 "dir"
1180 ];
1181
1182 gHTMLAttr.object =
1183 [
1184 "declare",
1185 "classid",
1186 "codebase",
1187 "data",
1188 "type",
1189 "codetype",
1190 "archive",
1191 "standby",
1192 "%height",
1193 "%width",
1194 "usemap",
1195 "name",
1196 "#tabindex",
1197 "align",
1198 "#border",
1199 "#hspace",
1200 "#vspace",
1201 "-",
1202 "_core",
1203 "-",
1204 "^lang",
1205 "dir"
1206 ];
1207
1208 gHTMLAttr.object_declare =
1209 [
1210 "declare"
1211 ];
1212
1213 gHTMLAttr.object_align =
1214 [
1215 "top",
1216 "middle",
1217 "bottom",
1218 "left",
1219 "right"
1220 ];
1221
1222 gHTMLAttr.ol =
1223 [
1224 "type",
1225 "compact",
1226 "#start",
1227 "-",
1228 "_core",
1229 "-",
1230 "^lang",
1231 "dir"
1232 ];
1233
1234 gHTMLAttr.ol_type =
1235 [
1236 "1",
1237 "a",
1238 "A",
1239 "i",
1240 "I"
1241 ];
1242
1243 gHTMLAttr.ol_compact =
1244 [
1245 "compact"
1246 ];
1247
1248
1249 gHTMLAttr.optgroup =
1250 [
1251 "disabled",
1252 "$label",
1253 "-",
1254 "_core",
1255 "-",
1256 "^lang",
1257 "dir"
1258 ];
1259
1260 gHTMLAttr.optgroup_disabled =
1261 [
1262 "disabled"
1263 ];
1264
1265
1266 gHTMLAttr.option =
1267 [
1268 "selected",
1269 "disabled",
1270 "label",
1271 "value",
1272 "-",
1273 "_core",
1274 "-",
1275 "^lang",
1276 "dir"
1277 ];
1278
1279 gHTMLAttr.option_selected =
1280 [
1281 "selected"
1282 ];
1283
1284 gHTMLAttr.option_disabled =
1285 [
1286 "disabled"
1287 ];
1288
1289
1290 gHTMLAttr.p =
1291 [
1292 "align",
1293 "-",
1294 "_core",
1295 "-",
1296 "^lang",
1297 "dir"
1298 ];
1299
1300 gHTMLAttr.p_align = gHAlignJustify;
1301
1302 gHTMLAttr.param =
1303 [
1304 "^id",
1305 "$name",
1306 "value",
1307 "$valuetype",
1308 "type"
1309 ];
1310
1311 gHTMLAttr.param_valuetype =
1312 [
1313 "data",
1314 "ref",
1315 "object"
1316 ];
1317
1318
1319 gHTMLAttr.pre =
1320 [
1321 "%width",
1322 "-",
1323 "_core",
1324 "-",
1325 "^lang",
1326 "dir"
1327 ];
1328
1329 gHTMLAttr.q =
1330 [
1331 "cite",
1332 "-",
1333 "_core",
1334 "-",
1335 "^lang",
1336 "dir"
1337 ];
1338
1339 gHTMLAttr.s =
1340 [
1341 "_core",
1342 "-",
1343 "^lang",
1344 "dir"
1345 ];
1346
1347 gHTMLAttr.samp =
1348 [
1349 "_core",
1350 "-",
1351 "^lang",
1352 "dir"
1353 ];
1354
1355 gHTMLAttr.script =
1356 [
1357 "charset",
1358 "$type",
1359 "language",
1360 "src",
1361 "defer"
1362 ];
1363
1364 gHTMLAttr.script_defer =
1365 [
1366 "defer"
1367 ];
1368
1369
1370 gHTMLAttr.select =
1371 [
1372 "name",
1373 "#size",
1374 "multiple",
1375 "disabled",
1376 "#tabindex",
1377 "-",
1378 "_core",
1379 "-",
1380 "^lang",
1381 "dir"
1382 ];
1383
1384 gHTMLAttr.select_multiple =
1385 [
1386 "multiple"
1387 ];
1388
1389 gHTMLAttr.select_disabled =
1390 [
1391 "disabled"
1392 ];
1393
1394 gHTMLAttr.small =
1395 [
1396 "_core",
1397 "-",
1398 "^lang",
1399 "dir"
1400 ];
1401
1402 gHTMLAttr.span =
1403 [
1404 "_core",
1405 "-",
1406 "^lang",
1407 "dir"
1408 ];
1409
1410 gHTMLAttr.strike =
1411 [
1412 "_core",
1413 "-",
1414 "^lang",
1415 "dir"
1416 ];
1417
1418 gHTMLAttr.strong =
1419 [
1420 "_core",
1421 "-",
1422 "^lang",
1423 "dir"
1424 ];
1425
1426 gHTMLAttr.style =
1427 [
1428 "$type",
1429 "media",
1430 "title",
1431 "-",
1432 "^lang",
1433 "dir"
1434 ];
1435
1436 gHTMLAttr.sub =
1437 [
1438 "_core",
1439 "-",
1440 "^lang",
1441 "dir"
1442 ];
1443
1444 gHTMLAttr.sup =
1445 [
1446 "_core",
1447 "-",
1448 "^lang",
1449 "dir"
1450 ];
1451
1452 gHTMLAttr.table =
1453 [
1454 "summary",
1455 "%width",
1456 "#border",
1457 "frame",
1458 "rules",
1459 "#cellspacing",
1460 "#cellpadding",
1461 "align",
1462 "bgcolor",
1463 "-",
1464 "_core",
1465 "-",
1466 "^lang",
1467 "dir"
1468 ];
1469
1470 gHTMLAttr.table_frame =
1471 [
1472 "void",
1473 "above",
1474 "below",
1475 "hsides",
1476 "lhs",
1477 "rhs",
1478 "vsides",
1479 "box",
1480 "border"
1481 ];
1482
1483 gHTMLAttr.table_rules =
1484 [
1485 "none",
1486 "groups",
1487 "rows",
1488 "cols",
1489 "all"
1490 ];
1491
1492 // Note; This is alignment of the table,
1493 // not table contents, like all other table child elements
1494 gHTMLAttr.table_align = gHAlign;
1495
1496 gHTMLAttr.table_bgcolor = gHTMLColors;
1497
1498 gHTMLAttr.tbody =
1499 [
1500 "align",
1501 "!char",
1502 "#charoff",
1503 "valign",
1504 "-",
1505 "_core",
1506 "-",
1507 "^lang",
1508 "dir"
1509 ];
1510
1511 gHTMLAttr.tbody_align = gHAlignTableContent;
1512
1513 gHTMLAttr.tbody_valign = gVAlignTable;
1514
1515 gHTMLAttr.td =
1516 [
1517 "abbr",
1518 "axis",
1519 "headers",
1520 "scope",
1521 "$#rowspan",
1522 "$#colspan",
1523 "align",
1524 "!char",
1525 "#charoff",
1526 "valign",
1527 "nowrap",
1528 "bgcolor",
1529 "%width",
1530 "%height",
1531 "-",
1532 "_core",
1533 "-",
1534 "^lang",
1535 "dir"
1536 ];
1537
1538 gHTMLAttr.td_scope =
1539 [
1540 "row",
1541 "col",
1542 "rowgroup",
1543 "colgroup"
1544 ];
1545
1546 gHTMLAttr.td_rowspan =
1547 [
1548 "1" // default
1549 ];
1550
1551 gHTMLAttr.td_colspan =
1552 [
1553 "1" // default
1554 ];
1555
1556 gHTMLAttr.td_align = gHAlignTableContent;
1557
1558 gHTMLAttr.td_valign = gVAlignTable;
1559
1560 gHTMLAttr.td_nowrap =
1561 [
1562 "nowrap"
1563 ];
1564
1565 gHTMLAttr.td_bgcolor = gHTMLColors;
1566
1567 gHTMLAttr.textarea =
1568 [
1569 "name",
1570 "$#rows",
1571 "$#cols",
1572 "disabled",
1573 "readonly",
1574 "#tabindex",
1575 "!accesskey",
1576 "-",
1577 "_core",
1578 "-",
1579 "^lang",
1580 "dir"
1581 ];
1582
1583 gHTMLAttr.textarea_disabled =
1584 [
1585 "disabled"
1586 ];
1587
1588 gHTMLAttr.textarea_readonly =
1589 [
1590 "readonly"
1591 ];
1592
1593
1594 gHTMLAttr.tfoot =
1595 [
1596 "align",
1597 "!char",
1598 "#charoff",
1599 "valign",
1600 "-",
1601 "_core",
1602 "-",
1603 "^lang",
1604 "dir"
1605 ];
1606
1607 gHTMLAttr.tfoot_align = gHAlignTableContent;
1608
1609 gHTMLAttr.tfoot_valign = gVAlignTable;
1610
1611 gHTMLAttr.th =
1612 [
1613 "abbr",
1614 "axis",
1615 "headers",
1616 "scope",
1617 "$#rowspan",
1618 "$#colspan",
1619 "align",
1620 "!char",
1621 "#charoff",
1622 "valign",
1623 "nowrap",
1624 "bgcolor",
1625 "%width",
1626 "%height",
1627 "-",
1628 "_core",
1629 "-",
1630 "^lang",
1631 "dir"
1632 ];
1633
1634 gHTMLAttr.th_scope =
1635 [
1636 "row",
1637 "col",
1638 "rowgroup",
1639 "colgroup"
1640 ];
1641
1642 gHTMLAttr.th_rowspan =
1643 [
1644 "1" // default
1645 ];
1646
1647 gHTMLAttr.th_colspan =
1648 [
1649 "1" // default
1650 ];
1651
1652 gHTMLAttr.th_align = gHAlignTableContent;
1653
1654 gHTMLAttr.th_valign = gVAlignTable;
1655
1656 gHTMLAttr.th_nowrap =
1657 [
1658 "nowrap"
1659 ];
1660
1661 gHTMLAttr.th_bgcolor = gHTMLColors;
1662
1663 gHTMLAttr.thead =
1664 [
1665 "align",
1666 "!char",
1667 "#charoff",
1668 "valign",
1669 "-",
1670 "_core",
1671 "-",
1672 "^lang",
1673 "dir"
1674 ];
1675
1676 gHTMLAttr.thead_align = gHAlignTableContent;
1677
1678 gHTMLAttr.thead_valign = gVAlignTable;
1679
1680 gHTMLAttr.title =
1681 [
1682 "^lang",
1683 "dir"
1684 ];
1685
1686 gHTMLAttr.tr =
1687 [
1688 "align",
1689 "!char",
1690 "#charoff",
1691 "valign",
1692 "bgcolor",
1693 "-",
1694 "_core",
1695 "-",
1696 "^lang",
1697 "dir"
1698 ];
1699
1700 gHTMLAttr.tr_align = gHAlignTableContent;
1701
1702 gHTMLAttr.tr_valign = gVAlignTable;
1703
1704 gHTMLAttr.tr_bgcolor = gHTMLColors;
1705
1706 gHTMLAttr.tt =
1707 [
1708 "_core",
1709 "-",
1710 "^lang",
1711 "dir"
1712 ];
1713
1714 gHTMLAttr.u =
1715 [
1716 "_core",
1717 "-",
1718 "^lang",
1719 "dir"
1720 ];
1721 gHTMLAttr.ul =
1722 [
1723 "type",
1724 "compact",
1725 "-",
1726 "_core",
1727 "-",
1728 "^lang",
1729 "dir"
1730 ];
1731
1732 gHTMLAttr.ul_type =
1733 [
1734 "disc",
1735 "square",
1736 "circle"
1737 ];
1738
1739 gHTMLAttr.ul_compact =
1740 [
1741 "compact"
1742 ];
1743
1744
1745 // Prefix with "_" since this is reserved (it's stripped out)
1746 gHTMLAttr._var =
1747 [
1748 "_core",
1749 "-",
1750 "^lang",
1751 "dir"
1752 ];
1753
1754 // ================ JS Attributes ================ //
1755 // These are element specif even handlers.
1756 /* Most all elements use gCoreJSEvents, so those
1757 are assumed except for those listed here with "noEvents"
1758 */
1759
1760 gJSAttr.a =
1761 [
1762 "onfocus",
1763 "onblur"
1764 ];
1765
1766 gJSAttr.area =
1767 [
1768 "onfocus",
1769 "onblur"
1770 ];
1771
1772 gJSAttr.body =
1773 [
1774 "onload",
1775 "onupload"
1776 ];
1777
1778 gJSAttr.button =
1779 [
1780 "onfocus",
1781 "onblur"
1782 ];
1783
1784 gJSAttr.form =
1785 [
1786 "onsubmit",
1787 "onreset"
1788 ];
1789
1790 gJSAttr.frameset =
1791 [
1792 "onload",
1793 "onunload"
1794 ];
1795
1796 gJSAttr.input =
1797 [
1798 "onfocus",
1799 "onblur",
1800 "onselect",
1801 "onchange"
1802 ];
1803
1804 gJSAttr.label =
1805 [
1806 "onfocus",
1807 "onblur"
1808 ];
1809
1810 gJSAttr.select =
1811 [
1812 "onfocus",
1813 "onblur",
1814 "onchange"
1815 ];
1816
1817 gJSAttr.textarea =
1818 [
1819 "onfocus",
1820 "onblur",
1821 "onselect",
1822 "onchange"
1823 ];
1824
1825 // Elements that don't have JSEvents:
1826 gJSAttr.font =
1827 [
1828 "noJSEvents"
1829 ];
1830
1831 gJSAttr.applet =
1832 [
1833 "noJSEvents"
1834 ];
1835
1836 gJSAttr.isindex =
1837 [
1838 "noJSEvents"
1839 ];
1840
1841 gJSAttr.iframe =
1842 [
1843 "noJSEvents"
1844 ];