mozilla

Compare Revisions

Browser Feature Detection

Change Revisions

Revision 165024:

Revision 165024 by George3 on

Revision 165025:

Revision 165025 by PkpQ6u on

Title:
Browser Feature Detection
Browser Feature Detection
Slug:
Browser_Feature_Detection
Browser_Feature_Detection
Tags:
DOM, Gecko, Cross-browser_Development, "Web Development"
DOM, Gecko, Cross-browser_Development, "Web Development"
Content:

Revision 165024
Revision 165025
n17      It is clear from these test results that Netscape 7.0x and n17      It is clear from these test results that Netscape 7.0x and 
>Mozilla Firefox have the greatest DOM support although Internet E>Mozilla Firefox have the greatest DOM support although Internet E
>xplorer, Safari, and Opera have sufficient DOM CSS 1 and DOM Leve>xplorer, Safari, and Opera have sufficient DOM CSS 1 and DOM Leve
>l 1 &amp; 2 <code>document</code> property and method support to >l 1
>enable cross browser web development. 
t19    <table cellspacing="0" class="standard-table">t
20      <caption>
21        <b>Test Summary</b>
22      </caption>
23      <tbody>
24        <tr>
25          <th>
26            Standard
27          </th>
28          <th>
29            Netscape 7.0x
30          </th>
31          <th>
32            Firefox 1.5
33          </th>
34          <th>
35            Safari 2
36          </th>
37          <th>
38            Opera 7 / 8.54 - 9.01
39          </th>
40          <th style="text-align:center">
41            Internet<br>
42            Explorer 6 / 7*
43          </th>
44        </tr>
45        <tr>
46          <td>
47            <a class="external" href="http://www.w3.org/TR/REC-DO
>M-Level-1/level-one-core.html">DOM Core 1</a> 
48          </td>
49          <td style="text-align:center">
50            100%
51          </td>
52          <td style="text-align:center">
53            100%
54          </td>
55          <td style="text-align:center">
56            100%
57          </td>
58          <td style="text-align:center">
59            75% / 91%
60          </td>
61          <td style="text-align:center">
62            75% / 75%
63          </td>
64        </tr>
65        <tr>
66          <td>
67            <a class="external" href="http://www.w3.org/TR/DOM-Le
>vel-2-Core/core.html">DOM Core 2</a> 
68          </td>
69          <td style="text-align:center">
70            100%
71          </td>
72          <td style="text-align:center">
73            100%
74          </td>
75          <td style="text-align:center">
76            100%
77          </td>
78          <td style="text-align:center">
79            70% / 94%
80          </td>
81          <td style="text-align:center">
82            58% / 58%
83          </td>
84        </tr>
85        <tr>
86          <td>
87            <a class="external" href="http://www.w3.org/TR/REC-DO
>M-Level-1/level-one-html.html">DOM 1 HTML</a> 
88          </td>
89          <td style="text-align:center">
90            100%
91          </td>
92          <td style="text-align:center">
93            100%
94          </td>
95          <td style="text-align:center">
96            100%
97          </td>
98          <td style="text-align:center">
99            100% / 100%
100          </td>
101          <td style="text-align:center">
102            100% / 100%
103          </td>
104        </tr>
105        <tr>
106          <td>
107            DOM CSS 1
108          </td>
109          <td style="text-align:center">
110            100%
111          </td>
112          <td style="text-align:center">
113            100%
114          </td>
115          <td style="text-align:center">
116            100%
117          </td>
118          <td style="text-align:center">
119            100% / 100%
120          </td>
121          <td style="text-align:center">
122            96% / 96%
123          </td>
124        </tr>
125        <tr>
126          <td>
127            <a class="external" href="http://www.w3.org/TR/DOM-Le
>vel-2-Style/css.html">DOM CSS 2</a> 
128          </td>
129          <td style="text-align:center">
130            100%
131          </td>
132          <td style="text-align:center">
133            98%
134          </td>
135          <td style="text-align:center">
136            67%
137          </td>
138          <td style="text-align:center">
139            71% / 83%
140          </td>
141          <td style="text-align:center">
142            38% / 42%
143          </td>
144        </tr>
145      </tbody>
146    </table>
147    <h3 name="Test_Results_Cross_Reference">
148      Test Results Cross Reference
149    </h3>
150    <h4 name="DOM_Core_Level_1">
151      DOM Core Level 1
152    </h4>
153    <table cellspacing="0" class="standard-table">
154      <caption>
155        <b>Support for properties/methods in <code>document</code
>></b> 
156      </caption>
157      <tbody>
158        <tr>
159          <th>
160            name
161          </th>
162          <th>
163            Firefox 1.5
164          </th>
165          <th>
166            IE 6 / 7*
167          </th>
168          <th>
169            Opera 8.54 - 9.01
170          </th>
171        </tr>
172        <tr>
173          <td>
174            doctype
175          </td>
176          <td>
177            true
178          </td>
179          <td>
180            true
181          </td>
182          <td>
183            true
184          </td>
185        </tr>
186        <tr>
187          <td>
188            implementation
189          </td>
190          <td>
191            true
192          </td>
193          <td>
194            true
195          </td>
196          <td>
197            true
198          </td>
199        </tr>
200        <tr>
201          <td>
202            documentElement
203          </td>
204          <td>
205            true
206          </td>
207          <td>
208            true
209          </td>
210          <td>
211            true
212          </td>
213        </tr>
214        <tr>
215          <td>
216            createElement
217          </td>
218          <td>
219            true
220          </td>
221          <td>
222            true
223          </td>
224          <td>
225            true
226          </td>
227        </tr>
228        <tr>
229          <td>
230            createDocumentFragment
231          </td>
232          <td>
233            true
234          </td>
235          <td>
236            true
237          </td>
238          <td>
239            true
240          </td>
241        </tr>
242        <tr>
243          <td>
244            createTextNode
245          </td>
246          <td>
247            true
248          </td>
249          <td>
250            true
251          </td>
252          <td>
253            true
254          </td>
255        </tr>
256        <tr>
257          <td>
258            createComment
259          </td>
260          <td>
261            true
262          </td>
263          <td>
264            true
265          </td>
266          <td>
267            true
268          </td>
269        </tr>
270        <tr>
271          <td>
272            createCDATASection
273          </td>
274          <td>
275            true
276          </td>
277          <td style="background-color:red">
278            false
279          </td>
280          <td>
281            true
282          </td>
283        </tr>
284        <tr>
285          <td>
286            createProcessingInstruction
287          </td>
288          <td>
289            true
290          </td>
291          <td style="background-color:red">
292            false
293          </td>
294          <td>
295            true
296          </td>
297        </tr>
298        <tr>
299          <td>
300            createAttribute
301          </td>
302          <td>
303            true
304          </td>
305          <td>
306            true
307          </td>
308          <td>
309            true
310          </td>
311        </tr>
312        <tr>
313          <td>
314            createEntityReference
315          </td>
316          <td>
317            true
318          </td>
319          <td style="background-color:red">
320            false
321          </td>
322          <td style="background-color:red">
323            false
324          </td>
325        </tr>
326        <tr>
327          <td>
328            getElementsByTagName
329          </td>
330          <td>
331            true
332          </td>
333          <td>
334            true
335          </td>
336          <td>
337            true
338          </td>
339        </tr>
340      </tbody>
341    </table>
342    <h4 name="DOM_Core_Level_2">
343      DOM Core Level 2
344    </h4>
345    <table cellspacing="0" class="standard-table">
346      <caption>
347        <b>Support for properties/methods in <code>document</code
>></b> 
348      </caption>
349      <tbody>
350        <tr>
351          <th>
352            name
353          </th>
354          <th>
355            Firefox 1.5
356          </th>
357          <th>
358            IE 6 / 7*
359          </th>
360          <th>
361            Opera 8.54 - 9.01
362          </th>
363        </tr>
364        <tr>
365          <td>
366            doctype
367          </td>
368          <td>
369            true
370          </td>
371          <td>
372            true
373          </td>
374          <td>
375            true
376          </td>
377        </tr>
378        <tr>
379          <td>
380            implementation
381          </td>
382          <td>
383            true
384          </td>
385          <td>
386            true
387          </td>
388          <td>
389            true
390          </td>
391        </tr>
392        <tr>
393          <td>
394            documentElement
395          </td>
396          <td>
397            true
398          </td>
399          <td>
400            true
401          </td>
402          <td>
403            true
404          </td>
405        </tr>
406        <tr>
407          <td>
408            createElement
409          </td>
410          <td>
411            true
412          </td>
413          <td>
414            true
415          </td>
416          <td>
417            true
418          </td>
419        </tr>
420        <tr>
421          <td>
422            createDocumentFragment
423          </td>
424          <td>
425            true
426          </td>
427          <td>
428            true
429          </td>
430          <td>
431            true
432          </td>
433        </tr>
434        <tr>
435          <td>
436            createTextNode
437          </td>
438          <td>
439            true
440          </td>
441          <td>
442            true
443          </td>
444          <td>
445            true
446          </td>
447        </tr>
448        <tr>
449          <td>
450            createComment
451          </td>
452          <td>
453            true
454          </td>
455          <td>
456            true
457          </td>
458          <td>
459            true
460          </td>
461        </tr>
462        <tr>
463          <td>
464            createCDATASection
465          </td>
466          <td>
467            true
468          </td>
469          <td style="background-color:red">
470            false
471          </td>
472          <td>
473            true
474          </td>
475        </tr>
476        <tr>
477          <td>
478            createProcessingInstruction
479          </td>
480          <td>
481            true
482          </td>
483          <td style="background-color:red">
484            false
485          </td>
486          <td>
487            true
488          </td>
489        </tr>
490        <tr>
491          <td>
492            createAttribute
493          </td>
494          <td>
495            true
496          </td>
497          <td>
498            true
499          </td>
500          <td>
501            true
502          </td>
503        </tr>
504        <tr>
505          <td>
506            createEntityReference
507          </td>
508          <td>
509            true
510          </td>
511          <td style="background-color:red">
512            false
513          </td>
514          <td style="background-color:red">
515            false
516          </td>
517        </tr>
518        <tr>
519          <td>
520            getElementsByTagName
521          </td>
522          <td>
523            true
524          </td>
525          <td>
526            true
527          </td>
528          <td>
529            true
530          </td>
531        </tr>
532        <tr>
533          <td>
534            importNode
535          </td>
536          <td>
537            true
538          </td>
539          <td style="background-color:red">
540            false
541          </td>
542          <td>
543            true
544          </td>
545        </tr>
546        <tr>
547          <td>
548            createElementNS
549          </td>
550          <td>
551            true
552          </td>
553          <td style="background-color:red">
554            false
555          </td>
556          <td>
557            true
558          </td>
559        </tr>
560        <tr>
561          <td>
562            createAttributeNS
563          </td>
564          <td>
565            true
566          </td>
567          <td style="background-color:red">
568            false
569          </td>
570          <td>
571            true
572          </td>
573        </tr>
574        <tr>
575          <td>
576            getElementsByTagNameNS
577          </td>
578          <td>
579            true
580          </td>
581          <td style="background-color:red">
582            false
583          </td>
584          <td>
585            true
586          </td>
587        </tr>
588        <tr>
589          <td>
590            getElementById
591          </td>
592          <td>
593            true
594          </td>
595          <td>
596            true
597          </td>
598          <td>
599            true
600          </td>
601        </tr>
602      </tbody>
603    </table>
604    <h4 name="DOM_Level_1_HTML">
605      DOM Level 1 HTML
606    </h4>
607    <table cellspacing="0" class="standard-table">
608      <caption>
609        <b>Support for properties/methods in <code>document</code
>></b> 
610      </caption>
611      <tbody>
612        <tr>
613          <th>
614            name
615          </th>
616          <th>
617            Firefox 1.5
618          </th>
619          <th>
620            IE 6 / 7*
621          </th>
622          <th>
623            Opera 8.54 - 9.01
624          </th>
625        </tr>
626        <tr>
627          <td>
628            documentElement
629          </td>
630          <td>
631            true
632          </td>
633          <td>
634            true
635          </td>
636          <td>
637            true
638          </td>
639        </tr>
640        <tr>
641          <td>
642            createElement
643          </td>
644          <td>
645            true
646          </td>
647          <td>
648            true
649          </td>
650          <td>
651            true
652          </td>
653        </tr>
654        <tr>
655          <td>
656            createDocumentFragment
657          </td>
658          <td>
659            true
660          </td>
661          <td>
662            true
663          </td>
664          <td>
665            true
666          </td>
667        </tr>
668        <tr>
669          <td>
670            createTextNode
671          </td>
672          <td>
673            true
674          </td>
675          <td>
676            true
677          </td>
678          <td>
679            true
680          </td>
681        </tr>
682        <tr>
683          <td>
684            createComment
685          </td>
686          <td>
687            true
688          </td>
689          <td>
690            true
691          </td>
692          <td>
693            true
694          </td>
695        </tr>
696        <tr>
697          <td>
698            createAttribute
699          </td>
700          <td>
701            true
702          </td>
703          <td>
704            true
705          </td>
706          <td>
707            true
708          </td>
709        </tr>
710        <tr>
711          <td>
712            getElementsByTagName
713          </td>
714          <td>
715            true
716          </td>
717          <td>
718            true
719          </td>
720          <td>
721            true
722          </td>
723        </tr>
724        <tr>
725          <td>
726            title
727          </td>
728          <td>
729            true
730          </td>
731          <td>
732            true
733          </td>
734          <td>
735            true
736          </td>
737        </tr>
738        <tr>
739          <td>
740            referrer
741          </td>
742          <td>
743            true
744          </td>
745          <td>
746            true
747          </td>
748          <td>
749            true
750          </td>
751        </tr>
752        <tr>
753          <td>
754            domain
755          </td>
756          <td>
757            true
758          </td>
759          <td>
760            true
761          </td>
762          <td>
763            true
764          </td>
765        </tr>
766        <tr>
767          <td>
768            URL
769          </td>
770          <td>
771            true
772          </td>
773          <td>
774            true
775          </td>
776          <td>
777            true
778          </td>
779        </tr>
780        <tr>
781          <td>
782            body
783          </td>
784          <td>
785            true
786          </td>
787          <td>
788            true
789          </td>
790          <td>
791            true
792          </td>
793        </tr>
794        <tr>
795          <td>
796            images
797          </td>
798          <td>
799            true
800          </td>
801          <td>
802            true
803          </td>
804          <td>
805            true
806          </td>
807        </tr>
808        <tr>
809          <td>
810            applets
811          </td>
812          <td>
813            true
814          </td>
815          <td>
816            true
817          </td>
818          <td>
819            true
820          </td>
821        </tr>
822        <tr>
823          <td>
824            links
825          </td>
826          <td>
827            true
828          </td>
829          <td>
830            true
831          </td>
832          <td>
833            true
834          </td>
835        </tr>
836        <tr>
837          <td>
838            forms
839          </td>
840          <td>
841            true
842          </td>
843          <td>
844            true
845          </td>
846          <td>
847            true
848          </td>
849        </tr>
850        <tr>
851          <td>
852            anchors
853          </td>
854          <td>
855            true
856          </td>
857          <td>
858            true
859          </td>
860          <td>
861            true
862          </td>
863        </tr>
864        <tr>
865          <td>
866            cookie
867          </td>
868          <td>
869            true
870          </td>
871          <td>
872            true
873          </td>
874          <td>
875            true
876          </td>
877        </tr>
878        <tr>
879          <td>
880            open
881          </td>
882          <td>
883            true
884          </td>
885          <td>
886            true
887          </td>
888          <td>
889            true
890          </td>
891        </tr>
892        <tr>
893          <td>
894            close
895          </td>
896          <td>
897            true
898          </td>
899          <td>
900            true
901          </td>
902          <td>
903            true
904          </td>
905        </tr>
906        <tr>
907          <td>
908            write
909          </td>
910          <td>
911            true
912          </td>
913          <td>
914            true
915          </td>
916          <td>
917            true
918          </td>
919        </tr>
920        <tr>
921          <td>
922            writeln
923          </td>
924          <td>
925            true
926          </td>
927          <td>
928            true
929          </td>
930          <td>
931            true
932          </td>
933        </tr>
934        <tr>
935          <td>
936            getElementById
937          </td>
938          <td>
939            true
940          </td>
941          <td>
942            true
943          </td>
944          <td>
945            true
946          </td>
947        </tr>
948        <tr>
949          <td>
950            getElementsByName
951          </td>
952          <td>
953            true
954          </td>
955          <td>
956            true
957          </td>
958          <td>
959            true
960          </td>
961        </tr>
962      </tbody>
963    </table>
964    <h4 name="DOM_CSS_1">
965      DOM CSS 1
966    </h4>
967    <table cellspacing="0" class="standard-table">
968      <caption>
969        <b>Support for properties/methods in <code>document.body.
>style</code></b> 
970      </caption>
971      <tbody>
972        <tr>
973          <th>
974            name
975          </th>
976          <th>
977            Firefox 1.5
978          </th>
979          <th>
980            IE 6 / 7*
981          </th>
982          <th>
983            Opera 8.54 - 9.01
984          </th>
985        </tr>
986        <tr>
987          <td>
988            background
989          </td>
990          <td>
991            true
992          </td>
993          <td>
994            true
995          </td>
996          <td>
997            true
998          </td>
999        </tr>
1000        <tr>
1001          <td>
1002            backgroundAttachment
1003          </td>
1004          <td>
1005            true
1006          </td>
1007          <td>
1008            true
1009          </td>
1010          <td>
1011            true
1012          </td>
1013        </tr>
1014        <tr>
1015          <td>
1016            backgroundColor
1017          </td>
1018          <td>
1019            true
1020          </td>
1021          <td>
1022            true
1023          </td>
1024          <td>
1025            true
1026          </td>
1027        </tr>
1028        <tr>
1029          <td>
1030            backgroundImage
1031          </td>
1032          <td>
1033            true
1034          </td>
1035          <td>
1036            true
1037          </td>
1038          <td>
1039            true
1040          </td>
1041        </tr>
1042        <tr>
1043          <td>
1044            backgroundRepeat
1045          </td>
1046          <td>
1047            true
1048          </td>
1049          <td>
1050            true
1051          </td>
1052          <td>
1053            true
1054          </td>
1055        </tr>
1056        <tr>
1057          <td>
1058            border
1059          </td>
1060          <td>
1061            true
1062          </td>
1063          <td>
1064            true
1065          </td>
1066          <td>
1067            true
1068          </td>
1069        </tr>
1070        <tr>
1071          <td>
1072            borderSpacing
1073          </td>
1074          <td>
1075            true
1076          </td>
1077          <td style="background-color:red">
1078            false
1079          </td>
1080          <td>
1081            true
1082          </td>
1083        </tr>
1084        <tr>
1085          <td>
1086            borderStyle
1087          </td>
1088          <td>
1089            true
1090          </td>
1091          <td>
1092            true
1093          </td>
1094          <td>
1095            true
1096          </td>
1097        </tr>
1098        <tr>
1099          <td>
1100            borderTop
1101          </td>
1102          <td>
1103            true
1104          </td>
1105          <td>
1106            true
1107          </td>
1108          <td>
1109            true
1110          </td>
1111        </tr>
1112        <tr>
1113          <td>
1114            borderRight
1115          </td>
1116          <td>
1117            true
1118          </td>
1119          <td>
1120            true
1121          </td>
1122          <td>
1123            true
1124          </td>
1125        </tr>
1126        <tr>
1127          <td>
1128            borderBottom
1129          </td>
1130          <td>
1131            true
1132          </td>
1133          <td>
1134            true
1135          </td>
1136          <td>
1137            true
1138          </td>
1139        </tr>
1140        <tr>
1141          <td>
1142            borderLeft
1143          </td>
1144          <td>
1145            true
1146          </td>
1147          <td>
1148            true
1149          </td>
1150          <td>
1151            true
1152          </td>
1153        </tr>
1154        <tr>
1155          <td>
1156            borderTopWidth
1157          </td>
1158          <td>
1159            true
1160          </td>
1161          <td>
1162            true
1163          </td>
1164          <td>
1165            true
1166          </td>
1167        </tr>
1168        <tr>
1169          <td>
1170            borderRightWidth
1171          </td>
1172          <td>
1173            true
1174          </td>
1175          <td>
1176            true
1177          </td>
1178          <td>
1179            true
1180          </td>
1181        </tr>
1182        <tr>
1183          <td>
1184            borderBottomWidth
1185          </td>
1186          <td>
1187            true
1188          </td>
1189          <td>
1190            true
1191          </td>
1192          <td>
1193            true
1194          </td>
1195        </tr>
1196        <tr>
1197          <td>
1198            borderLeftWidth
1199          </td>
1200          <td>
1201            true
1202          </td>
1203          <td>
1204            true
1205          </td>
1206          <td>
1207            true
1208          </td>
1209        </tr>
1210        <tr>
1211          <td>
1212            borderWidth
1213          </td>
1214          <td>
1215            true
1216          </td>
1217          <td>
1218            true
1219          </td>
1220          <td>
1221            true
1222          </td>
1223        </tr>
1224        <tr>
1225          <td>
1226            clear
1227          </td>
1228          <td>
1229            true
1230          </td>
1231          <td>
1232            true
1233          </td>
1234          <td>
1235            true
1236          </td>
1237        </tr>
1238        <tr>
1239          <td>
1240            color
1241          </td>
1242          <td>
1243            true
1244          </td>
1245          <td>
1246            true
1247          </td>
1248          <td>
1249            true
1250          </td>
1251        </tr>
1252        <tr>
1253          <td>
1254            display
1255          </td>
1256          <td>
1257            true
1258          </td>
1259          <td>
1260            true
1261          </td>
1262          <td>
1263            true
1264          </td>
1265        </tr>
1266        <tr>
1267          <td>
1268            cssFloat
1269          </td>
1270          <td>
1271            true
1272          </td>
1273          <td style="background-color:red">
1274            false
1275          </td>
1276          <td>
1277            true
1278          </td>
1279        </tr>
1280        <tr>
1281          <td>
1282            font
1283          </td>
1284          <td>
1285            true
1286          </td>
1287          <td>
1288            true
1289          </td>
1290          <td>
1291            true
1292          </td>
1293        </tr>
1294        <tr>
1295          <td>
1296            fontFamily
1297          </td>
1298          <td>
1299            true
1300          </td>
1301          <td>
1302            true
1303          </td>
1304          <td>
1305            true
1306          </td>
1307        </tr>
1308        <tr>
1309          <td>
1310            fontSize
1311          </td>
1312          <td>
1313            true
1314          </td>
1315          <td>
1316            true
1317          </td>
1318          <td>
1319            true
1320          </td>
1321        </tr>
1322        <tr>
1323          <td>
1324            fontStyle
1325          </td>
1326          <td>
1327            true
1328          </td>
1329          <td>
1330            true
1331          </td>
1332          <td>
1333            true
1334          </td>
1335        </tr>
1336        <tr>
1337          <td>
1338            fontVariant
1339          </td>
1340          <td>
1341            true
1342          </td>
1343          <td>
1344            true
1345          </td>
1346          <td>
1347            true
1348          </td>
1349        </tr>
1350        <tr>
1351          <td>
1352            fontWeight
1353          </td>
1354          <td>
1355            true
1356          </td>
1357          <td>
1358            true
1359          </td>
1360          <td>
1361            true
1362          </td>
1363        </tr>
1364        <tr>
1365          <td>
1366            height
1367          </td>
1368          <td>
1369            true
1370          </td>
1371          <td>
1372            true
1373          </td>
1374          <td>
1375            true
1376          </td>
1377        </tr>
1378        <tr>
1379          <td>
1380            letterSpacing
1381          </td>
1382          <td>
1383            true
1384          </td>
1385          <td>
1386            true
1387          </td>
1388          <td>
1389            true
1390          </td>
1391        </tr>
1392        <tr>
1393          <td>
1394            lineHeight
1395          </td>
1396          <td>
1397            true
1398          </td>
1399          <td>
1400            true
1401          </td>
1402          <td>
1403            true
1404          </td>
1405        </tr>
1406        <tr>
1407          <td>
1408            listStyle
1409          </td>
1410          <td>
1411            true
1412          </td>
1413          <td>
1414            true
1415          </td>
1416          <td>
1417            true
1418          </td>
1419        </tr>
1420        <tr>
1421          <td>
1422            listStyleImage
1423          </td>
1424          <td>
1425            true
1426          </td>
1427          <td>
1428            true
1429          </td>
1430          <td>
1431            true
1432          </td>
1433        </tr>
1434        <tr>
1435          <td>
1436            listStylePosition
1437          </td>
1438          <td>
1439            true
1440          </td>
1441          <td>
1442            true
1443          </td>
1444          <td>
1445            true
1446          </td>
1447        </tr>
1448        <tr>
1449          <td>
1450            listStyleType
1451          </td>
1452          <td>
1453            true
1454          </td>
1455          <td>
1456            true
1457          </td>
1458          <td>
1459            true
1460          </td>
1461        </tr>
1462        <tr>
1463          <td>
1464            margin
1465          </td>
1466          <td>
1467            true
1468          </td>
1469          <td>
1470            true
1471          </td>
1472          <td>
1473            true
1474          </td>
1475        </tr>
1476        <tr>
1477          <td>
1478            marginTop
1479          </td>
1480          <td>
1481            true
1482          </td>
1483          <td>
1484            true
1485          </td>
1486          <td>
1487            true
1488          </td>
1489        </tr>
1490        <tr>
1491          <td>
1492            marginRight
1493          </td>
1494          <td>
1495            true
1496          </td>
1497          <td>
1498            true
1499          </td>
1500          <td>
1501            true
1502          </td>
1503        </tr>
1504        <tr>
1505          <td>
1506            marginBottom
1507          </td>
1508          <td>
1509            true
1510          </td>
1511          <td>
1512            true
1513          </td>
1514          <td>
1515            true
1516          </td>
1517        </tr>
1518        <tr>
1519          <td>
1520            marginLeft
1521          </td>
1522          <td>
1523            true
1524          </td>
1525          <td>
1526            true
1527          </td>
1528          <td>
1529            true
1530          </td>
1531        </tr>
1532        <tr>
1533          <td>
1534            padding
1535          </td>
1536          <td>
1537            true
1538          </td>
1539          <td>
1540            true
1541          </td>
1542          <td>
1543            true
1544          </td>
1545        </tr>
1546        <tr>
1547          <td>
1548            paddingTop
1549          </td>
1550          <td>
1551            true
1552          </td>
1553          <td>
1554            true
1555          </td>
1556          <td>
1557            true
1558          </td>
1559        </tr>
1560        <tr>
1561          <td>
1562            paddingRight
1563          </td>
1564          <td>
1565            true
1566          </td>
1567          <td>
1568            true
1569          </td>
1570          <td>
1571            true
1572          </td>
1573        </tr>
1574        <tr>
1575          <td>
1576            paddingBottom
1577          </td>
1578          <td>
1579            true
1580          </td>
1581          <td>
1582            true
1583          </td>
1584          <td>
1585            true
1586          </td>
1587        </tr>
1588        <tr>
1589          <td>
1590            paddingLeft
1591          </td>
1592          <td>
1593            true
1594          </td>
1595          <td>
1596            true
1597          </td>
1598          <td>
1599            true
1600          </td>
1601        </tr>
1602        <tr>
1603          <td>
1604            textAlign
1605          </td>
1606          <td>
1607            true
1608          </td>
1609          <td>
1610            true
1611          </td>
1612          <td>
1613            true
1614          </td>
1615        </tr>
1616        <tr>
1617          <td>
1618            textDecoration
1619          </td>
1620          <td>
1621            true
1622          </td>
1623          <td>
1624            true
1625          </td>
1626          <td>
1627            true
1628          </td>
1629        </tr>
1630        <tr>
1631          <td>
1632            textIndent
1633          </td>
1634          <td>
1635            true
1636          </td>
1637          <td>
1638            true
1639          </td>
1640          <td>
1641            true
1642          </td>
1643        </tr>
1644        <tr>
1645          <td>
1646            textTransform
1647          </td>
1648          <td>
1649            true
1650          </td>
1651          <td>
1652            true
1653          </td>
1654          <td>
1655            true
1656          </td>
1657        </tr>
1658        <tr>
1659          <td>
1660            verticalAlign
1661          </td>
1662          <td>
1663            true
1664          </td>
1665          <td>
1666            true
1667          </td>
1668          <td>
1669            true
1670          </td>
1671        </tr>
1672        <tr>
1673          <td>
1674            whiteSpace
1675          </td>
1676          <td>
1677            true
1678          </td>
1679          <td>
1680            true
1681          </td>
1682          <td>
1683            true
1684          </td>
1685        </tr>
1686        <tr>
1687          <td>
1688            width
1689          </td>
1690          <td>
1691            true
1692          </td>
1693          <td>
1694            true
1695          </td>
1696          <td>
1697            true
1698          </td>
1699        </tr>
1700        <tr>
1701          <td>
1702            wordSpacing
1703          </td>
1704          <td>
1705            true
1706          </td>
1707          <td>
1708            true
1709          </td>
1710          <td>
1711            true
1712          </td>
1713        </tr>
1714      </tbody>
1715    </table>
1716    <h4 name="DOM_CSS_2">
1717      DOM CSS 2
1718    </h4>
1719    <table cellspacing="0" class="standard-table">
1720      <caption>
1721        <b>Support for properties/methods in <code>document.body.
>style</code></b> 
1722      </caption>
1723      <tbody>
1724        <tr>
1725          <th>
1726            name
1727          </th>
1728          <th>
1729            Firefox 1.5
1730          </th>
1731          <th>
1732            IE 6 / 7*
1733          </th>
1734          <th>
1735            Opera 8.54 - 9.01
1736          </th>
1737        </tr>
1738        <tr>
1739          <td>
1740            azimuth
1741          </td>
1742          <td>
1743            true
1744          </td>
1745          <td style="background-color:red">
1746            false
1747          </td>
1748          <td style="background-color:red">
1749            false
1750          </td>
1751        </tr>
1752        <tr>
1753          <td>
1754            backgroundPosition
1755          </td>
1756          <td>
1757            true
1758          </td>
1759          <td>
1760            true
1761          </td>
1762          <td>
1763            true
1764          </td>
1765        </tr>
1766        <tr>
1767          <td>
1768            borderCollapse
1769          </td>
1770          <td>
1771            true
1772          </td>
1773          <td>
1774            true
1775          </td>
1776          <td>
1777            true
1778          </td>
1779        </tr>
1780        <tr>
1781          <td>
1782            borderSpacing
1783          </td>
1784          <td>
1785            true
1786          </td>
1787          <td style="background-color:red">
1788            false
1789          </td>
1790          <td>
1791            true
1792          </td>
1793        </tr>
1794        <tr>
1795          <td>
1796            borderTopColor
1797          </td>
1798          <td>
1799            true
1800          </td>
1801          <td>
1802            true
1803          </td>
1804          <td>
1805            true
1806          </td>
1807        </tr>
1808        <tr>
1809          <td>
1810            borderRightColor
1811          </td>
1812          <td>
1813            true
1814          </td>
1815          <td>
1816            true
1817          </td>
1818          <td>
1819            true
1820          </td>
1821        </tr>
1822        <tr>
1823          <td>
1824            borderBottomColor
1825          </td>
1826          <td>
1827            true
1828          </td>
1829          <td>
1830            true
1831          </td>
1832          <td>
1833            true
1834          </td>
1835        </tr>
1836        <tr>
1837          <td>
1838            borderLeftColor
1839          </td>
1840          <td>
1841            true
1842          </td>
1843          <td>
1844            true
1845          </td>
1846          <td>
1847            true
1848          </td>
1849        </tr>
1850        <tr>
1851          <td>
1852            borderTopStyle
1853          </td>
1854          <td>
1855            true
1856          </td>
1857          <td>
1858            true
1859          </td>
1860          <td>
1861            true
1862          </td>
1863        </tr>
1864        <tr>
1865          <td>
1866            borderRightStyle
1867          </td>
1868          <td>
1869            true
1870          </td>
1871          <td>
1872            true
1873          </td>
1874          <td>
1875            true
1876          </td>
1877        </tr>
1878        <tr>
1879          <td>
1880            borderBottomStyle
1881          </td>
1882          <td>
1883            true
1884          </td>
1885          <td>
1886            true
1887          </td>
1888          <td>
1889            true
1890          </td>
1891        </tr>
1892        <tr>
1893          <td>
1894            borderLeftStyle
1895          </td>
1896          <td>
1897            true
1898          </td>
1899          <td>
1900            true
1901          </td>
1902          <td>
1903            true
1904          </td>
1905        </tr>
1906        <tr>
1907          <td>
1908            bottom
1909          </td>
1910          <td>
1911            true
1912          </td>
1913          <td>
1914            true
1915          </td>
1916          <td>
1917            true
1918          </td>
1919        </tr>
1920        <tr>
1921          <td>
1922            captionSide
1923          </td>
1924          <td>
1925            true
1926          </td>
1927          <td style="background-color:red">
1928            false
1929          </td>
1930          <td>
1931            true
1932          </td>
1933        </tr>
1934        <tr>
1935          <td>
1936            clear
1937          </td>
1938          <td>
1939            true
1940          </td>
1941          <td>
1942            true
1943          </td>
1944          <td>
1945            true
1946          </td>
1947        </tr>
1948        <tr>
1949          <td>
1950            clip
1951          </td>
1952          <td>
1953            true
1954          </td>
1955          <td>
1956            true
1957          </td>
1958          <td>
1959            true
1960          </td>
1961        </tr>
1962        <tr>
1963          <td>
1964            content
1965          </td>
1966          <td>
1967            true
1968          </td>
1969          <td style="background-color:red">
1970            false
1971          </td>
1972          <td>
1973            true
1974          </td>
1975        </tr>
1976        <tr>
1977          <td>
1978            counterIncrement
1979          </td>
1980          <td>
1981            true
1982          </td>
1983          <td style="background-color:red">
1984            false
1985          </td>
1986          <td>
1987            true
1988          </td>
1989        </tr>
1990        <tr>
1991          <td>
1992            counterReset
1993          </td>
1994          <td>
1995            true
1996          </td>
1997          <td style="background-color:red">
1998            false
1999          </td>
2000          <td>
2001            true
2002          </td>
2003        </tr>
2004        <tr>
2005          <td>
2006            cue
2007          </td>
2008          <td>
2009            true
2010          </td>
2011          <td style="background-color:red">
2012            false
2013          </td>
2014          <td style="background-color:red">
2015            false
2016          </td>
2017        </tr>
2018        <tr>
2019          <td>
2020            cueAfter
2021          </td>
2022          <td>
2023            true
2024          </td>
2025          <td style="background-color:red">
2026            false
2027          </td>
2028          <td style="background-color:red">
2029            false
2030          </td>
2031        </tr>
2032        <tr>
2033          <td>
2034            cueBefore
2035          </td>
2036          <td>
2037            true
2038          </td>
2039          <td style="background-color:red">
2040            false
2041          </td>
2042          <td style="background-color:red">
2043            false
2044          </td>
2045        </tr>
2046        <tr>
2047          <td>
2048            cursor
2049          </td>
2050          <td>
2051            true
2052          </td>
2053          <td>
2054            true
2055          </td>
2056          <td>
2057            true
2058          </td>
2059        </tr>
2060        <tr>
2061          <td>
2062            direction
2063          </td>
2064          <td>
2065            true
2066          </td>
2067          <td>
2068            true
2069          </td>
2070          <td>
2071            true
2072          </td>
2073        </tr>
2074        <tr>
2075          <td>
2076            elevation
2077          </td>
2078          <td>
2079            true
2080          </td>
2081          <td style="background-color:red">
2082            false
2083          </td>
2084          <td style="background-color:red">
2085            false
2086          </td>
2087        </tr>
2088        <tr>
2089          <td>
2090            emptyCells
2091          </td>
2092          <td>
2093            true
2094          </td>
2095          <td style="background-color:red">
2096            false
2097          </td>
2098          <td>
2099            true
2100          </td>
2101        </tr>
2102        <tr>
2103          <td>
2104            fontSizeAdjust
2105          </td>
2106          <td>
2107            true
2108          </td>
2109          <td style="background-color:red">
2110            false
2111          </td>
2112          <td>
2113            true
2114          </td>
2115        </tr>
2116        <tr>
2117          <td>
2118            fontStretch
2119          </td>
2120          <td>
2121            true
2122          </td>
2123          <td style="background-color:red">
2124            false
2125          </td>
2126          <td>
2127            true
2128          </td>
2129        </tr>
2130        <tr>
2131          <td>
2132            left
2133          </td>
2134          <td>
2135            true
2136          </td>
2137          <td>
2138            true
2139          </td>
2140          <td>
2141            true
2142          </td>
2143        </tr>
2144        <tr>
2145          <td>
2146            markerOffset
2147          </td>
2148          <td>
2149            true
2150          </td>
2151          <td style="background-color:red">
2152            false
2153          </td>
2154          <td>
2155            true
2156          </td>
2157        </tr>
2158        <tr>
2159          <td>
2160            marks
2161          </td>
2162          <td>
2163            true
2164          </td>
2165          <td style="background-color:red">
2166            false
2167          </td>
2168          <td>
2169            true
2170          </td>
2171        </tr>
2172        <tr>
2173          <td>
2174            maxHeight
2175          </td>
2176          <td>
2177            true
2178          </td>
2179          <td style="background-color:lightblue">
2180            ie7 only
2181          </td>
2182          <td>
2183            true
2184          </td>
2185        </tr>
2186        <tr>
2187          <td>
2188            maxWidth
2189          </td>
2190          <td>
2191            true
2192          </td>
2193          <td style="background-color:lightblue">
2194            ie7 only
2195          </td>
2196          <td>
2197            true
2198          </td>
2199        </tr>
2200        <tr>
2201          <td>
2202            minHeight
2203          </td>
2204          <td>
2205            true
2206          </td>
2207          <td>
2208            true
2209          </td>
2210          <td>
2211            true
2212          </td>
2213        </tr>
2214        <tr>
2215          <td>
2216            minWidth
2217          </td>
2218          <td>
2219            true
2220          </td>
2221          <td style="background-color:lightblue">
2222            ie7 only
2223          </td>
2224          <td>
2225            true
2226          </td>
2227        </tr>
2228        <tr>
2229          <td>
2230            orphans
2231          </td>
2232          <td>
2233            true
2234          </td>
2235          <td style="background-color:red">
2236            false
2237          </td>
2238          <td>
2239            true
2240          </td>
2241        </tr>
2242        <tr>
2243          <td>
2244            outline
2245          </td>
2246          <td>
2247            true
2248          </td>
2249          <td style="background-color:red">
2250            false
2251          </td>
2252          <td>
2253            true
2254          </td>
2255        </tr>
2256        <tr>
2257          <td>
2258            outlineColor
2259          </td>
2260          <td>
2261            true
2262          </td>
2263          <td style="background-color:red">
2264            false
2265          </td>
2266          <td>
2267            true
2268          </td>
2269        </tr>
2270        <tr>
2271          <td>
2272            outlineStyle
2273          </td>
2274          <td>
2275            true
2276          </td>
2277          <td style="background-color:red">
2278            false
2279          </td>
2280          <td>
2281            true
2282          </td>
2283        </tr>
2284        <tr>
2285          <td>
2286            outlineWidth
2287          </td>
2288          <td>
2289            true
2290          </td>
2291          <td style="background-color:red">
2292            false
2293          </td>
2294          <td>
2295            true
2296          </td>
2297        </tr>
2298        <tr>
2299          <td>
2300            overflow
2301          </td>
2302          <td>
2303            true
2304          </td>
2305          <td>
2306            true
2307          </td>
2308          <td>
2309            true
2310          </td>
2311        </tr>
2312        <tr>
2313          <td>
2314            page
2315          </td>
2316          <td>
2317            true
2318          </td>
2319          <td style="background-color:red">
2320            false
2321          </td>
2322          <td>
2323            true
2324          </td>
2325        </tr>
2326        <tr>
2327          <td>
2328            pageBreakAfter
2329          </td>
2330          <td>
2331            true
2332          </td>
2333          <td>
2334            true
2335          </td>
2336          <td>
2337            true
2338          </td>
2339        </tr>
2340        <tr>
2341          <td>
2342            pageBreakBefore
2343          </td>
2344          <td>
2345            true
2346          </td>
2347          <td>
2348            true
2349          </td>
2350          <td>
2351            true
2352          </td>
2353        </tr>
2354        <tr>
2355          <td>
2356            pageBreakInside
2357          </td>
2358          <td>
2359            true
2360          </td>
2361          <td style="background-color:red">
2362            false
2363          </td>
2364          <td>
2365            true
2366          </td>
2367        </tr>
2368        <tr>
2369          <td>
2370            pause
2371          </td>
2372          <td>
2373            true
2374          </td>
2375          <td style="background-color:red">
2376            false
2377          </td>
2378          <td>
2379            true
2380          </td>
2381        </tr>
2382        <tr>
2383          <td>
2384            pauseAfter
2385          </td>
2386          <td>
2387            true
2388          </td>
2389          <td style="background-color:red">
2390            false
2391          </td>
2392          <td>
2393            true
2394          </td>
2395        </tr>
2396        <tr>
2397          <td>
2398            pauseBefore
2399          </td>
2400          <td>
2401            true
2402          </td>
2403          <td style="background-color:red">
2404            false
2405          </td>
2406          <td>
2407            true
2408          </td>
2409        </tr>
2410        <tr>
2411          <td>
2412            pitch
2413          </td>
2414          <td>
2415            true
2416          </td>
2417          <td style="background-color:red">
2418            false
2419          </td>
2420          <td style="background-color:red">
2421            false
2422          </td>
2423        </tr>
2424        <tr>
2425          <td>
2426            pitchRange
2427          </td>
2428          <td>
2429            true
2430          </td>
2431          <td style="background-color:red">
2432            false
2433          </td>
2434          <td>
2435            true
2436          </td>
2437        </tr>
2438        <tr>
2439          <td>
2440            playDuring
2441          </td>
2442          <td style="background-color:red">
2443            false
2444          </td>
2445          <td style="background-color:red">
2446            false
2447          </td>
2448          <td style="background-color:red">
2449            false
2450          </td>
2451        </tr>
2452        <tr>
2453          <td>
2454            position
2455          </td>
2456          <td>
2457            true
2458          </td>
2459          <td>
2460            true
2461          </td>
2462          <td>
2463            true
2464          </td>
2465        </tr>
2466        <tr>
2467          <td>
2468            quotes
2469          </td>
2470          <td>
2471            true
2472          </td>
2473          <td style="background-color:red">
2474            false
2475          </td>
2476          <td>
2477            true
2478          </td>
2479        </tr>
2480        <tr>
2481          <td>
2482            richness
2483          </td>
2484          <td>
2485            true
2486          </td>
2487          <td style="background-color:red">
2488            false
2489          </td>
2490          <td style="background-color:red">
2491            false
2492          </td>
2493        </tr>
2494        <tr>
2495          <td>
2496            right
2497          </td>
2498          <td>
2499            true
2500          </td>
2501          <td>
2502            true
2503          </td>
2504          <td>
2505            true
2506          </td>
2507        </tr>
2508        <tr>
2509          <td>
2510            size
2511          </td>
2512          <td>
2513            true
2514          </td>
2515          <td style="background-color:red">
2516            false
2517          </td>
2518          <td>
2519            true
2520          </td>
2521        </tr>
2522        <tr>
2523          <td>
2524            speak
2525          </td>
2526          <td>
2527            true
2528          </td>
2529          <td style="background-color:red">
2530            false
2531          </td>
2532          <td>
2533            true
2534          </td>
2535        </tr>
2536        <tr>
2537          <td>
2538            speakHeader
2539          </td>
2540          <td>
2541            true
2542          </td>
2543          <td style="background-color:red">
2544            false
2545          </td>
2546          <td style="background-color:red">
2547            false
2548          </td>
2549        </tr>
2550        <tr>
2551          <td>
2552            speakNumeral
2553          </td>
2554          <td>
2555            true
2556          </td>
2557          <td style="background-color:red">
2558            false
2559          </td>
2560          <td style="background-color:red">
2561            false
2562          </td>
2563        </tr>
2564        <tr>
2565          <td>
2566            speakPunctuation
2567          </td>
2568          <td>
2569            true
2570          </td>
2571          <td style="background-color:red">
2572            false
2573          </td>
2574          <td style="background-color:red">
2575            false
2576          </td>
2577        </tr>
2578        <tr>
2579          <td>
2580            speechRate
2581          </td>
2582          <td>
2583            true
2584          </td>
2585          <td style="background-color:red">
2586            false
2587          </td>
2588          <td>
2589            true
2590          </td>
2591        </tr>
2592        <tr>
2593          <td>
2594            stress
2595          </td>
2596          <td>
2597            true
2598          </td>
2599          <td style="background-color:red">
2600            false
2601          </td>
2602          <td style="background-color:red">
2603            false
2604          </td>
2605        </tr>
2606        <tr>
2607          <td>
2608            tableLayout
2609          </td>
2610          <td>
2611            true
2612          </td>
2613          <td>
2614            true
2615          </td>
2616          <td>
2617            true
2618          </td>
2619        </tr>
2620        <tr>
2621          <td>
2622            textShadow
2623          </td>
2624          <td>
2625            true
2626          </td>
2627          <td style="background-color:red">
2628            false
2629          </td>
2630          <td>
2631            true
2632          </td>
2633        </tr>
2634        <tr>
2635          <td>
2636            top
2637          </td>
2638          <td>
2639            true
2640          </td>
2641          <td>
2642            true
2643          </td>
2644          <td>
2645            true
2646          </td>
2647        </tr>
2648        <tr>
2649          <td>
2650            unicodeBidi
2651          </td>
2652          <td>
2653            true
2654          </td>
2655          <td>
2656            true
2657          </td>
2658          <td>
2659            true
2660          </td>
2661        </tr>
2662        <tr>
2663          <td>
2664            visibility
2665          </td>
2666          <td>
2667            true
2668          </td>
2669          <td>
2670            true
2671          </td>
2672          <td>
2673            true
2674          </td>
2675        </tr>
2676        <tr>
2677          <td>
2678            voiceFamily
2679          </td>
2680          <td>
2681            true
2682          </td>
2683          <td style="background-color:red">
2684            false
2685          </td>
2686          <td>
2687            true
2688          </td>
2689        </tr>
2690        <tr>
2691          <td>
2692            volume
2693          </td>
2694          <td>
2695            true
2696          </td>
2697          <td style="background-color:red">
2698            false
2699          </td>
2700          <td>
2701            true
2702          </td>
2703        </tr>
2704        <tr>
2705          <td>
2706            widows
2707          </td>
2708          <td>
2709            true
2710          </td>
2711          <td style="background-color:red">
2712            false
2713          </td>
2714          <td>
2715            true
2716          </td>
2717        </tr>
2718        <tr>
2719          <td>
2720            zIndex
2721          </td>
2722          <td>
2723            true
2724          </td>
2725          <td>
2726            true
2727          </td>
2728          <td>
2729            true
2730          </td>
2731        </tr>
2732      </tbody>
2733    </table>
2734    <h3 name="Test_Code">
2735      Test Code
2736    </h3>
2737    <pre>
2738&lt;script type="text/javascript"&gt;
2739&lt;!-- 
2740 
2741// document properties that are used to determine
2742// support levels
2743var _FEATURES = 
2744{
2745        'DOMCORE1': [ 
2746                {name: 'doctype', 'supported': false},
2747                {name: 'implementation', 'supported': false},
2748                {name: 'documentElement', 'supported': false},
2749                {name: 'createElement', 'supported': false},
2750                {name: 'createDocumentFragment', 'supported': fal
>se}, 
2751                {name: 'createTextNode', 'supported': false},
2752                {name: 'createComment', 'supported': false},
2753                {name: 'createCDATASection', 'supported': false},
2754                {name: 'createProcessingInstruction', 'supported'
>: false}, 
2755                {name: 'createAttribute', 'supported': false},
2756                {name: 'createEntityReference', 'supported': fals
>e}, 
2757                {name: 'getElementsByTagName',  'supported': fals
>e} 
2758        ],
2759        
2760        'DOMHTML': [ 
2761                {name: 'documentElement', 'supported': false},
2762                {name: 'createElement', 'supported': false},
2763                {name: 'createDocumentFragment', 'supported': fal
>se}, 
2764                {name: 'createTextNode', 'supported': false},
2765                {name: 'createComment', 'supported': false},
2766                {name: 'createAttribute', 'supported': false},
2767                {name: 'getElementsByTagName',  'supported': fals
>e}, 
2768                {name: 'title', 'supported': false},
2769                {name: 'referrer', 'supported': false},
2770                {name: 'domain', 'supported': false},
2771                {name: 'URL', 'supported': false},
2772                {name: 'body', 'supported': false},
2773                {name: 'images', 'supported': false},
2774                {name: 'applets', 'supported': false},
2775                {name: 'links', 'supported': false},
2776                {name: 'forms', 'supported': false},
2777                {name: 'anchors', 'supported': false},
2778                {name: 'cookie', 'supported': false},
2779                {name: 'open', 'supported': false},
2780                {name: 'close', 'supported': false},
2781                {name: 'write', 'supported': false},
2782                {name: 'writeln', 'supported': false},
2783                {name: 'getElementById', 'supported': false},
2784                {name: 'getElementsByName', 'supported': false}
2785        ],
2786 
2787        'DOMCORE2': [ 
2788                {name: 'doctype', 'supported': false},
2789                {name: 'implementation', 'supported': false},
2790                {name: 'documentElement', 'supported': false},
2791                {name: 'createElement', 'supported': false},
2792                {name: 'createDocumentFragment', 'supported': fal
>se}, 
2793                {name: 'createTextNode', 'supported': false},
2794                {name: 'createComment', 'supported': false},
2795                {name: 'createCDATASection', 'supported': false},
2796                {name: 'createProcessingInstruction', 'supported'
>: false}, 
2797                {name: 'createAttribute', 'supported': false},
2798                {name: 'createEntityReference', 'supported': fals
>e}, 
2799                {name: 'getElementsByTagName',  'supported': fals
>e}, 
2800                {name: 'importNode', 'supported': false},
2801                {name: 'createElementNS', 'supported': false},
2802                {name: 'createAttributeNS', 'supported': false},
2803                {name: 'getElementsByTagNameNS', 'supported': fal
>se}, 
2804                {name: 'getElementById', 'supported': false}
2805        ],
2806 
2807        'DOMCSS1': [
2808                {name: 'background', 'supported': false},
2809                {name: 'backgroundAttachment', 'supported': false
>}, 
2810                {name: 'backgroundColor', 'supported': false},
2811                {name: 'backgroundImage', 'supported': false},
2812                {name: 'backgroundRepeat', 'supported': false},
2813                {name: 'border', 'supported': false},
2814                {name: 'borderSpacing', 'supported': false},
2815                {name: 'borderStyle', 'supported': false},
2816                {name: 'borderTop', 'supported': false},
2817                {name: 'borderRight', 'supported': false},
2818                {name: 'borderBottom', 'supported': false},
2819                {name: 'borderLeft', 'supported': false},
2820                {name: 'borderTopWidth', 'supported': false},
2821                {name: 'borderRightWidth', 'supported': false},
2822                {name: 'borderBottomWidth', 'supported': false},
2823                {name: 'borderLeftWidth', 'supported': false},
2824                {name: 'borderWidth', 'supported': false},
2825                {name: 'clear', 'supported': false},
2826                {name: 'color', 'supported': false},
2827                {name: 'display', 'supported': false},
2828                {name: 'cssFloat', 'supported': false},
2829                {name: 'font', 'supported': false},
2830                {name: 'fontFamily', 'supported': false},
2831                {name: 'fontSize', 'supported': false},
2832                {name: 'fontStyle', 'supported': false},
2833                {name: 'fontVariant', 'supported': false},
2834                {name: 'fontWeight', 'supported': false},
2835                {name: 'height', 'supported': false},
2836                {name: 'letterSpacing', 'supported': false},
2837                {name: 'lineHeight', 'supported': false},
2838                {name: 'listStyle', 'supported': false},
2839                {name: 'listStyleImage', 'supported': false},
2840                {name: 'listStylePosition', 'supported': false},
2841                {name: 'listStyleType', 'supported': false},
2842                {name: 'margin', 'supported': false},
2843                {name: 'marginTop', 'supported': false},
2844                {name: 'marginRight', 'supported': false},
2845                {name: 'marginBottom', 'supported': false},
2846                {name: 'marginLeft', 'supported': false},
2847                {name: 'padding', 'supported': false},
2848                {name: 'paddingTop', 'supported': false},
2849                {name: 'paddingRight', 'supported': false},
2850                {name: 'paddingBottom', 'supported': false},
2851                {name: 'paddingLeft', 'supported': false},
2852                {name: 'textAlign', 'supported': false},
2853                {name: 'textDecoration', 'supported': false},
2854                {name: 'textIndent', 'supported': false},
2855                {name: 'textTransform', 'supported': false},
2856                {name: 'verticalAlign', 'supported': false},
2857                {name: 'whiteSpace', 'supported': false},
2858                {name: 'width', 'supported': false},
2859                {name: 'wordSpacing', 'supported': false}
2860        ],
2861        
2862        'DOMCSS2': [
2863                {name: 'azimuth', 'supported': false},
2864                {name: 'backgroundPosition', 'supported': false},
2865                {name: 'borderCollapse', 'supported': false},
2866                {name: 'borderSpacing', 'supported': false},
2867                {name: 'borderTopColor', 'supported': false},
2868                {name: 'borderRightColor', 'supported': false},
2869                {name: 'borderBottomColor', 'supported': false},
2870                {name: 'borderLeftColor', 'supported': false},
2871                {name: 'borderTopStyle', 'supported': false},
2872                {name: 'borderRightStyle', 'supported': false},
2873                {name: 'borderBottomStyle', 'supported': false},
2874                {name: 'borderLeftStyle', 'supported': false},
2875                {name: 'bottom', 'supported': false},
2876                {name: 'captionSide', 'supported': false},
2877                {name: 'clear', 'supported': false},
2878                {name: 'clip', 'supported': false},
2879                {name: 'content', 'supported': false},
2880                {name: 'counterIncrement', 'supported': false},
2881                {name: 'counterReset', 'supported': false},
2882                {name: 'cue', 'supported': false},
2883                {name: 'cueAfter', 'supported': false},
2884                {name: 'cueBefore', 'supported': false},
2885                {name: 'cursor', 'supported': false},
2886                {name: 'direction', 'supported': false},
2887                {name: 'elevation', 'supported': false},
2888                {name: 'emptyCells', 'supported': false},
2889                {name: 'fontSizeAdjust', 'supported': false},
2890                {name: 'fontStretch', 'supported': false},
2891                {name: 'left', 'supported': false},
2892                {name: 'markerOffset', 'supported': false},
2893                {name: 'marks', 'supported': false},
2894                {name: 'maxHeight', 'supported': false},
2895                {name: 'maxWidth', 'supported': false},
2896                {name: 'minHeight', 'supported': false},
2897                {name: 'minWidth', 'supported': false},
2898                {name: 'orphans', 'supported': false},
2899                {name: 'outline', 'supported': false},
2900                {name: 'outlineColor', 'supported': false},
2901                {name: 'outlineStyle', 'supported': false},
2902                {name: 'outlineWidth', 'supported': false},
2903                {name: 'overflow', 'supported': false},
2904                {name: 'page', 'supported': false},
2905                {name: 'pageBreakAfter', 'supported': false},
2906                {name: 'pageBreakBefore', 'supported': false},
2907                {name: 'pageBreakInside', 'supported': false},
2908                {name: 'pause', 'supported': false},
2909                {name: 'pauseAfter', 'supported': false},
2910                {name: 'pauseBefore', 'supported': false},
2911                {name: 'pitch', 'supported': false},
2912                {name: 'pitchRange', 'supported': false},
2913                {name: 'playDuring', 'supported': false},
2914                {name: 'position', 'supported': false},
2915                {name: 'quotes', 'supported': false},
2916                {name: 'richness', 'supported': false},
2917                {name: 'right', 'supported': false},
2918                {name: 'size', 'supported': false},
2919                {name: 'speak', 'supported': false},
2920                {name: 'speakHeader', 'supported': false},
2921                {name: 'speakNumeral', 'supported': false},
2922                {name: 'speakPunctuation', 'supported': false},
2923                {name: 'speechRate', 'supported': false},
2924                {name: 'stress', 'supported': false},
2925                {name: 'tableLayout', 'supported': false},
2926                {name: 'textShadow', 'supported': false},
2927                {name: 'top', 'supported': false},
2928                {name: 'unicodeBidi', 'supported': false},
2929                {name: 'visibility', 'supported': false},
2930                {name: 'voiceFamily', 'supported': false},
2931                {name: 'volume', 'supported': false},
2932                {name: 'widows', 'supported': false},
2933                {name: 'zIndex', 'supported': false}
2934        ]
2935};
2936 
2937function supports(object, featureSet)
2938{
2939        var i;
2940        var features = _FEATURES[featureSet];
2941        var level = 0;
2942        
2943        if (!features)
2944                return level;
2945                
2946        for (i = 0; i &lt; features.length; i++)
2947                if (typeof(object[features[i].name]) != 'undefine
>d') 
2948                {
2949                        features[i].supported = true;
2950                        ++level;
2951                }
2952 
2953        return Math.floor( (100 *  level) / features.length );
2954}
2955 
2956function generateReport(object, featureSet, description)
2957{
2958        var i;
2959        var features = _FEATURES[featureSet];
2960 
2961        document.write('&lt;p&gt;&lt;b&gt;' + featureSet + ' supp
>ort for properties/methods in ' + description + ', percentage of  
>names defined = ' + supports(object, featureSet) + '%&lt;\/b&gt;& 
>lt;\/p&gt;'); 
2962 
2963        document.write('&lt;table cellspacing="0"&gt;');
2964        for (i = 0; i &lt; features.length; i++) 
2965      {
2966                if (features[i].supported)
2967                     document.write('&lt;tr&gt;&lt;td&gt;' + feat
>ures[i].name + '&lt;\/td&gt;&lt;td&gt;' + features[i].supported + 
> '&lt;\/td&gt;&lt;\/tr&gt;'); 
2968                else
2969                        document.write('&lt;tr&gt;&lt;td&gt;' + f
>eatures[i].name + '&lt;\/td&gt;&lt;td style="background-color:red 
>"&gt;' + features[i].supported + '&lt;\/td&gt;&lt;\/tr&gt;'); 
2970      }
2971        document.write('&lt;\/table&gt;');
2972}
2973 
2974var oldonerror = window.onerror; // suppress error messages...
2975window.onerror = null;
2976document.write('&lt;p&gt;&lt;b&gt; Your browser ' + navigator.use
>rAgent + '&lt;\/b&gt;&lt;\/p&gt;'); 
2977generateReport(document,                        'DOMCORE1', 'docu
>ment'); 
2978generateReport(document,                        'DOMCORE2', 'docu
>ment'); 
2979generateReport(document,                        'DOMHTML',  'docu
>ment'); 
2980generateReport(document.body.style,     'DOMCSS1',  'document.bod
>y.style'); 
2981generateReport(document.body.style,     'DOMCSS2',  'document.bod
>y.style'); 
2982window.onerror = oldonerror;
2983 
2984//--&gt;
2985&lt;/script&gt;
2986 
2987</pre>
2988    <p>
2989      <span class="plain">*</span>Internet Explorer 7 RC-1 tested
>. 
2990    </p>
2991    <h3 name="References">
2992      References
2993    </h3>
2994    <ul>
2995      <li>
2996        <a href="en/Browser_Detection_and_Cross_Browser_Support">
>Browser Detection and Cross Browser Support</a> 
2997      </li>
2998      <li>
2999        <a class="external" href="http://www.opera.com/docs/specs
>/opera9/">Web Specifications Supported in Opera 9</a> 
3000      </li>
3001      <li>
3002        <a class="external" href="http://msdn.microsoft.com/works
>hop/essentials/whatsnew/whatsnew_70_scr.asp">What's New in Intern 
>et Explorer 7 (Script)</a> 
3003      </li>
3004    </ul>
3005    <div class="originaldocinfo">
3006      <h3 name="Original_Document_Information">
3007        Original Document Information
3008      </h3>
3009      <ul>
3010        <li>Author(s): (Unknown)
3011        </li>
3012        <li>Last Updated Date: Updated March 16, 2003
3013        </li>
3014        <li>Copyright Information: Copyright © 2001-2003 Netscape
>. 
3015        </li>
3016        <li>Note: This reprinted article was originally part of t
>he DevEdge site. 
3017        </li>
3018      </ul>
3019    </div>

Back to History