forked from h5bp/html5please
/
index.html
1615 lines (1344 loc) · 85.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<html class='no-js' lang='en'>
<head>
<meta charset='utf-8' />
<meta content='IE=edge,chrome=1' http-equiv='X-UA-Compatible' />
<title>HTML5 Please</title>
<meta content='' name='description' />
<meta content='' name='author' />
<meta content='width=device-width, initial-scale=1.0' name='viewport' />
<link href='http://fonts.googleapis.com/css?family=Francois+One|Open+Sans:400italic,400,800' rel='stylesheet' />
<link href='css/style.css' rel='stylesheet' />
<script src='js/libs/modernizr-2.0.min.js'></script>
</head>
<body id=gfs>
<header class=index>
<h1>HTML5 <img src='img/HTML5-logo.png'> Please</h1>
<h2>
<b>Use the new and shiny responsibly.</b>
<p>Look up HTML5 features, know if they are ready for use, and if so find out how you should use them – with polyfills, fallbacks or as they are. <a href="#moredetails" id="clickmore">more about this site</a>
</p>
<div id="moredetails">
<p><a href="http://caniuse.com">When Can I Use</a> tells you the browser support story, while <a href="http://modernizr.com">Modernizr</a> gives you the power of feature detection. HTML5 Please helps you out with recommendations for <a href="https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills">polyfills</a> and implementation so you can decide if and how to put each of these features to use.</p>
<p>The recommendations below represent the collective knowledge of developers who have been deep in the HTML5 trenches. We hope they serve you well.</p>
</div>
</h2>
<div>
<input id=livesearch class=search name=livesearch placeholder='type to filter' type='search' value='' autofocus />
<a href="/" id=searchurl>link to this search ›</a>
<div class="explore-features">
<h2><b>Explore</b> features</h2>
<ul>
<li>supported by <a href="#gtie9">IE10+</a> <a href="#gtie8">IE9+</a> <a href="#gtie7">IE8+</a> <a href="#gtie6">IE7+</a> <a href="#noie">no IE</a> </li>
<li>not supported by <a href="#nomobile">mobile devices</a> <a href="#nooldmobile">older mobile devices</a></li>
<li>requiring <a href="#prefixes">prefixes</a><a href="#polyfill">polyfill</a><a href="#fallback">fallback</a></li>
<li>that you should <a href="#use">use</a> <a href="#caution">use with caution</a> <a href="#avoid">avoid</a></li>
<li>that are <a href="#css">css</a> <a href="#html">html</a><a href="#api">api</a><a href="#js">js</a></li>
<li> <a href="#showall">all features</a></li>
</ul>
</div>
</div>
</header>
<div id=main role=main>
<section class="features list">
<article class="fallback">
<header>
<h3 class="status caution">caution <i>with <b class=fallback>fallback</b></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>animations </h2>
</header>
<div class="more">
<div class='recco'>
<p>CSS Animations are still in a flux. The Working Group has <a href="http://www.w3.org/2012/01/13-svg-minutes.html#action02">decided to provide</a> a universal animation spec that would work across CSS, SVG and HTML. For now, use animations for providing additional glamour and use feature detection to provide alternative experience on browsers that do not support this feature for critical animations.</p>
</div>
<div class='polyfills'></div>
<p class='links'>
<a href="http://caniuse.com/animations">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/animations.md>Edit this info</a>
</p>
</div>
<footer class="tags">fallback</footer>
</article>
<article class="polyfill">
<header>
<h3 class="status use">use <i>with <b class=polyfill>polyfill</b></i> </h3>
<h4 class="kind html">html</h4>
<h2 class='name'><audio> </h2>
</header>
<div class="more">
<div class='recco'>
<p>As with video, you need to provide your audio file in multiple formats for these to work—you'll need <a href="http://www.scirra.com/blog/44/on-html5-audio-formats-aac-and-ogg">Ogg and AAC</a>. jPlayer has a jQuery dependency. Sound Manager has an extensive API for further customization. </p>
</div>
<div class='polyfills'><b>Recommended polyfills: </b><p><a href="https://github.com/happyworm/jPlayer">jPlayer</a>, <a href="http://www.schillmania.com/projects/soundmanager2/">Sound Manager 2</a></p></div>
<p class='links'>
<a href="http://caniuse.com/audio">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/audio.md>Edit this info</a>
</p>
</div>
<footer class="tags">polyfill</footer>
</article>
<article class="fallback prefixes">
<header>
<h3 class="status use">use <i>with <b class=fallback>fallback</b></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>border-image </h2>
</header>
<div class="more">
<div class='recco'>
<p>Make sure to use all the right prefixes (<code>-o-</code>, <code>-webkit</code>, <code>-ms-</code>, <code>-moz-</code>); additionally, <a href="http://border-image.com/">border-image.com</a> may help. You should let this fallback to either a normal solid border or no border at all (depending on whether a border is essential for readability). We recommend you avoid polyfills. </p>
</div>
<div class='polyfills'></div>
<p class='links'>
<a href="http://caniuse.com/border-image">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/border-image.md>Edit this info</a>
</p>
</div>
<footer class="tags">fallback prefixes</footer>
</article>
<article class="">
<header>
<h3 class="status use">use <i></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>border-radius </h2>
</header>
<div class="more">
<div class='recco'>
<p><code>border-radius</code> can be safely used without a prefix for all modern browsers, and gracefully renders rectangles when not supported. However, note that applying this to a large area and on many elements <a href="http://perfectionkills.com/profiling-css-for-fun-and-profit-optimization-notes/">might cause significant performance</a> impact when scrolling or when the window is redrawn. </p>
</div>
<div class='polyfills'></div>
<p class='links'>
<a href="http://caniuse.com/border-radius">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/border-radius.md>Edit this info</a>
</p>
</div>
<footer class="tags"></footer>
</article>
<article class="none">
<header>
<h3 class="status avoid">avoid <i></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>box-reflection </h2>
</header>
<div class="more">
<div class='recco'>
<p>Box reflection has never been a CSS3 spec. Parts of what you can do with box-reflection would be possible to do with CSS3 filters. Till then, please avoid using webkit only reflection. Also, as a designer you deserve better. </p>
</div>
<div class='polyfills'></div>
<p class='links'>
<a href=https://github.com/h5bp/html5please/blob/master/posts/box-reflection.md>Edit this info</a>
</p>
</div>
<footer class="tags">none</footer>
</article>
<article class="none">
<header>
<h3 class="status caution">caution <i></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>box-shadow </h2>
</header>
<div class="more">
<div class='recco'>
<p><code>box-shadow</code> is safe to use most of the time, except when you are applying it on a large area, which might cause significant performance hit when the user interacts with your page (on scroll, hover, etc). </p>
<p>Polyfills are unncessary for box-shadow. They are too costly and slow down pageload. Users with a downlevel browser will not get a shadow, but aren't checking your site in multiple browsers anyhow.</p>
</div>
<div class='polyfills'></div>
<p class='links'>
<a href="http://caniuse.com/box-shadow">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/box-shadow.md>Edit this info</a>
</p>
</div>
<footer class="tags">none</footer>
</article>
<article class="fallback prefixes gtie7">
<header>
<h3 class="status use">use <i>with <b class=fallback>fallback</b></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>box-sizing </h2>
</header>
<div class="more">
<div class='recco'>
<p><a href="http://css-tricks.com/box-sizing/"><code>box-sizing</code></a><code>: border-box</code> may be a much more sensible default for you. You can apply it to all (<code>*</code>) elements if you like. Firefox is the only browser that requires a prefix for box-sizing. You can use it without a prefix for everything else. IE8 has this feature natively and you can optionally use the <a href="https://github.com/Schepp/box-sizing-polyfill">box-sizing polyfill</a> to provide this feature in IE 6/7 (you could scope the adjustments using <a href="http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/">IE conditionals</a> or Modernizr's <a href="http://www.modernizr.com/download/#-cssclasses-addtest-css_boxsizing"><code>no-box-sizing</code></a>).</p>
</div>
<div class='polyfills'></div>
<p class='links'>
<a href="http://caniuse.com/box-sizing">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/box-sizing.md>Edit this info</a>
</p>
</div>
<footer class="tags">fallback prefixes gtie7</footer>
</article>
<article class="none">
<header>
<h3 class="status avoid">avoid <i></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>calc() </h2>
</header>
<div class="more">
<div class='recco'>
<p>IE and Firefox are the only supporting browsers, which makes using calc in production tedious given the impact it can have on layout and the consequent breaking of your design on unsupported browsers. We encourage you use it for experimentation but not for any production use. </p>
</div>
<div class='polyfills'></div>
<p class='links'>
<a href="http://caniuse.com/calc">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/calc.md>Edit this info</a>
</p>
</div>
<footer class="tags">none</footer>
</article>
<article class="gtie8 polyfill">
<header>
<h3 class="status use">use <i>with <b class=polyfill>polyfill</b></i> </h3>
<h4 class="kind html">html</h4>
<h2 class='name'><canvas> </h2>
</header>
<div class="more">
<div class='recco'>
<p>Canvas is definitely good to go for modern browsers. If however you're looking to use it in IE 8 and below, use FlashCanvas. </p>
</div>
<div class='polyfills'><b>Recommended polyfills: </b><p><a href="http://flashcanvas.net/">FlashCanvas</a></p></div>
<p class='links'>
<a href="http://caniuse.com/canvas">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/canvas.md>Edit this info</a>
</p>
</div>
<footer class="tags">gtie8 polyfill</footer>
</article>
<article class="polyfill noie nooldmobile">
<header>
<h3 class="status use">use <i>with <b class=polyfill>polyfill</b></i> </h3>
<h4 class="kind api">api</h4>
<h2 class='name'>classList </h2>
</header>
<div class="more">
<div class='recco'>
<p>Classlist is unsupported in older mobile browsers and IE. This is not a concern if you are using a library like jQuery and using it to add/remove class names, but if not, make sure you use the polyfill.</p>
</div>
<div class='polyfills'><b>Recommended polyfills: </b><p><a href="https://github.com/eligrey/classList.js">classlist.js</a></p></div>
<p class='links'>
<a href="http://caniuse.com/classlist">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/classlist.md>Edit this info</a>
</p>
</div>
<footer class="tags">polyfill noie nooldmobile</footer>
</article>
<article class="polyfill">
<header>
<h3 class="status use">use <i>with <b class=polyfill>polyfill</b></i> </h3>
<h4 class="kind html">html</h4>
<h2 class='name'>CORS </h2>
</header>
<div class="more">
<div class='recco'>
<p>CORS, or cross-origin resource sharing, enables a few things, but most notably cross-domain AJAX. IE8 introduced <a href="http://msdn.microsoft.com/en-us/library/ie/cc288060(v=vs.85">XDomainRequest</a>.aspx), so really only IE7 needs help with cross-domain files. Consider the polyfills below or you can fallback to using a <a href="http://benalman.com/projects/php-simple-proxy/">simple proxy</a>.</p>
</div>
<div class='polyfills'><b>Recommended polyfills: </b><p><a href="https://github.com/toolness/postmessage-proxied-xhr/#readme">postmessage-proxied-xhr</a>, <a href="http://flxhr.flensed.com/">flXHR</a> (requires crossdomain.xml), <a href="https://github.com/eligrey/pmxdr">pmxdr</a> (requires host installed)</p></div>
<p class='links'>
<a href="http://caniuse.com/cors">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/cors.md>Edit this info</a>
</p>
</div>
<footer class="tags">polyfill</footer>
</article>
<article class="fallback gtie8">
<header>
<h3 class="status use">use <i>with <b class=fallback>fallback</b></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>css3 colors </h2>
</header>
<div class="more">
<div class='recco'>
<p>If you found yourself wanting to use <code>papayawhip</code> or <code>goldenrod</code> or <code>indianred</code> as your colors of choice, do feel free. You have to specify a fallback color for IE 8- users. </p>
</div>
<div class='polyfills'></div>
<p class='links'>
<a href="http://caniuse.com/css3-colors">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/css3-colors.md>Edit this info</a>
</p>
</div>
<footer class="tags">fallback gtie8</footer>
</article>
<article class="polyfill gtie9 nomobile">
<header>
<h3 class="status use">use <i>with <b class=polyfill>polyfill</b></i> </h3>
<h4 class="kind html">html</h4>
<h2 class='name'><datalist> </h2>
</header>
<div class="more">
<div class='recco'>
<p>Datalist enables autocomplete combo boxes. It can be polyfilled well with any of the scripts below, though they have <a href="https://github.com/h5bp/html5please/issues/18">varying levels</a> of support for the full feature. You can also use a <a href="http://adactio.com/journal/4272/">graceful fallback</a> if you choose not to polyfill.</p>
</div>
<div class='polyfills'><b>Recommended polyfills: </b><p><a href="http://css-tricks.com/relevant-dropdowns-polyfill-for-datalist/">Relavant Dropdowns</a>, <a href="http://afarkas.github.com/webshim/demos/">Webshims</a>, <a href="http://miketaylr.com/code/datalist.html">jQuery Datalist Plugin</a></p></div>
<p class='links'>
<a href="http://caniuse.com/datalist">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/datalist.md>Edit this info</a>
</p>
</div>
<footer class="tags">polyfill gtie9 nomobile</footer>
</article>
<article class="fallback noie nooldmobile">
<header>
<h3 class="status use">use <i>with <b class=fallback>fallback</b></i> </h3>
<h4 class="kind api">api</h4>
<h2 class='name'>dataset </h2>
</header>
<div class="more">
<div class='recco'>
<p><code>elem.dataset</code> is unsupported in IE and older mobile browsers. Using data-* attributes will be totally fine in all browsers, but instead of using <code>elem.dataset.foo</code> just use <code>elem.getAttribute('data-foo')</code>. A polyfill is availble if you want terser syntax.</p>
</div>
<div class='polyfills'><b>Recommended polyfills: </b><p><a href="http://eligrey.com/blog/post/html-5-dataset-support">HTML5 dataset support</a></p></div>
<p class='links'>
<a href="http://caniuse.com/dataset">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/dataset.md>Edit this info</a>
</p>
</div>
<footer class="tags">fallback noie nooldmobile</footer>
</article>
<article class="polyfill">
<header>
<h3 class="status use">use <i>with <b class=polyfill>polyfill</b></i> </h3>
<h4 class="kind html">html</h4>
<h2 class='name'><details> </h2>
</header>
<div class="more">
<div class='recco'>
<p>Use the details element if you intend to show a summary which when clicked reveals detailed information. </p>
</div>
<div class='polyfills'><b>Recommended polyfills: </b><p><a href="http://mathiasbynens.be/notes/html5-details-jquery">Details</a></p></div>
<p class='links'>
<a href="http://caniuse.com/details">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/details.md>Edit this info</a>
</p>
</div>
<footer class="tags">polyfill</footer>
</article>
<article class="polyfill nomobile">
<header>
<h3 class="status caution">caution <i>with <b class=polyfill>polyfill</b></i> </h3>
<h4 class="kind api">api</h4>
<h2 class='name'>drag n drop </h2>
</header>
<div class="more">
<div class='recco'>
<p>Drag n Drop was standardized in HTML5 but based on IE's original implementation. So it has wide support (except Opera), but many feel frustrated when using the API. You may want to use jQuery UI Draggable (or another JS library) to handle this for you. Meanwhile the proposed <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#the-dropzone-attribute">[dropzone]</a> attribute will improve the situation as it gains browser support.</p>
</div>
<div class='polyfills'><b>Recommended polyfills: </b><p><a href="https://github.com/MrSwitch/dropfile">dropfile</a>, <a href="https://github.com/eligrey/FileSaver.js">fileSaver</a>, <a href="https://github.com/vjeux/jDataView">jDataView</a></p></div>
<p class='links'>
<a href="http://caniuse.com/dragndrop">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/dragndrop.md>Edit this info</a>
</p>
</div>
<footer class="tags">polyfill nomobile</footer>
</article>
<article class="fallback gtie8 nooldmobile">
<header>
<h3 class="status use">use <i>with <b class=fallback>fallback</b></i> </h3>
<h4 class="kind js">js</h4>
<h2 class='name'>ECMAScript 5 </h2>
</header>
<div class="more">
<div class='recco'>
<p>ECMAScript version 5 covers a large number of feature additions to what we normally call JavaScript. Excluding IE8, <a href="http://kangax.github.com/es5-compat-table/">most of ES5 is supported in browsers</a>. As it introduces no new syntax, it's possible to polyfill fairly well. The below polyfills tackle most uses of these features, but <a href="https://gist.github.com/1120592">not <em>all</em> cases</a>.</p>
</div>
<div class='polyfills'><b>Recommended polyfills: </b><p><a href="https://github.com/kriskowal/es5-shim/">es5-shim</a>, <a href="http://augmentjs.com/">augment.js</a></p></div>
<p class='links'>
<a href="http://caniuse.com/ec">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/ec.md>Edit this info</a>
</p>
</div>
<footer class="tags">fallback gtie8 nooldmobile</footer>
</article>
<article class="fallback">
<header>
<h3 class="status use">use <i>with <b class=fallback>fallback</b></i> </h3>
<h4 class="kind html">html</h4>
<h2 class='name'>Eventsource </h2>
</header>
<div class="more">
<div class='recco'>
<p>EventSource.js provides a base fallback and is not dependent on jQuery.</p>
</div>
<div class='polyfills'><b>Recommended polyfills: </b><p><a href="https://github.com/remy/polyfills/blob/master/EventSource.js">EventSource.js</a>, <a href="https://github.com/rwldrn/jquery.eventsource">jQuery.eventsource</a></p></div>
<p class='links'>
<a href="http://caniuse.com/Eventsource">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/Eventsource.md>Edit this info</a>
</p>
</div>
<footer class="tags">fallback</footer>
</article>
<article class="none">
<header>
<h3 class="status avoid">avoid <i></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>exclusions </h2>
</header>
<div class="more">
<div class='recco'>
<p>Exclusions are new and exciting, but again very much in a flux. Active development to get an implementation out is on-going, but again, please avoid using this until there are stable implementations in the wild.</p>
</div>
<div class='polyfills'></div>
<p class='links'>
<a href="http://css3clickchart.com/#exclusions">
Learn more
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/exclusions.md>Edit this info</a>
</p>
</div>
<footer class="tags">none</footer>
</article>
<article class="none">
<header>
<h3 class="status avoid">avoid <i></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>filters </h2>
</header>
<div class="more">
<div class='recco'>
<p>This spec is under active development and as such syntaxes are likely to
change radically before stabilizing. Avoid using this. </p>
</div>
<div class='polyfills'></div>
<p class='links'>
<a href="http://css3clickchart.com/#filters">
Learn more
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/filters.md>Edit this info</a>
</p>
</div>
<footer class="tags">none</footer>
</article>
<article class="none">
<header>
<h3 class="status avoid">avoid <i></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>flexbox </h2>
</header>
<div class="more">
<div class='recco'>
<p>Unfortunately, older versions of this spec have been implemented in Gecko, Webkit and Trident. But <a href="http://dev.w3.org/csswg/css3-flexbox/">the spec</a> has changed significantly (starting from the syntax), hence we recommend you avoid using this until the stable version of the spec finds wide-spread implementation.</p>
</div>
<div class='polyfills'></div>
<p class='links'>
<a href="http://caniuse.com/flexbox">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/flexbox.md>Edit this info</a>
</p>
</div>
<footer class="tags">none</footer>
</article>
<article class="none">
<header>
<h3 class="status use">use <i></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>font-feature-settings </h2>
</header>
<div class="more">
<div class='recco'>
<p>IE10 and Firefox 4 support low level control over font feature settings. What this means is other browsers merely will not render the flourishes you seek. </p>
</div>
<div class='polyfills'></div>
<p class='links'>
<a href="http://blog.fontdeck.com/post/15777165734/opentype-1?503cde40">
Learn more
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/font-feature-settings.md>Edit this info</a>
</p>
</div>
<footer class="tags">none</footer>
</article>
<article class="fallback">
<header>
<h3 class="status use">use <i>with <b class=fallback>fallback</b></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>@font-face </h2>
</header>
<div class="more">
<div class='recco'>
<p>Use the <a href="http://www.fontsquirrel.com/fontface/generator">Font Squirrel Generator</a> for fonts you have license for using as web fonts. <a href="http://www.fontspring.com/blog/the-new-bulletproof-font-face-syntax">Font Squirrel @font-face syntax</a> is also the most bullet-proof way of serving web fonts. You do not need polyfills - just fonts in several formats; WOFF is preferred, followed by TTF and then EOT. </p>
<p>Also, don't use sIFR or Cufon anymore.</p>
</div>
<div class='polyfills'></div>
<p class='links'>
<a href="http://caniuse.com/fontface">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/fontface.md>Edit this info</a>
</p>
</div>
<footer class="tags">fallback</footer>
</article>
<article class="fallback gtie8">
<header>
<h3 class="status use">use <i>with <b class=fallback>fallback</b></i> </h3>
<h4 class="kind api">api</h4>
<h2 class='name'>geolocation </h2>
</header>
<div class="more">
<div class='recco'>
<p><a href="https://gist.github.com/366184">geolocation shim</a> uses Google's IP-geocoding service as a fallback. <a href="http://code.google.com/p/geo-location-javascript/">geo-location-javascript</a> doesn't but has hooks into Blackberry, WebOS, and Google Gears specific APIs. In most cases, you should just not expose geo features in your app if the feature is not natively present.</p>
</div>
<div class='polyfills'><b>Recommended polyfills: </b><p><a href="https://gist.github.com/366184">geolocation shim</a>, <a href="http://code.google.com/p/geo-location-javascript/">geo-location-javascript</a></p></div>
<p class='links'>
<a href="http://caniuse.com/geolocation">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/geolocation.md>Edit this info</a>
</p>
</div>
<footer class="tags">fallback gtie8</footer>
</article>
<article class="fallback prefixes gtie8">
<header>
<h3 class="status use">use <i>with <b class=fallback>fallback</b></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>gradients </h2>
</header>
<div class="more">
<div class='recco'>
<p>We strongly recommend you use all the prefixes (<code>-o-</code>, <code>-webkit</code>, <code>-ms-</code>, <code>-moz-</code>) when you provide gradients as image values (<code>background</code> or <code>border-image</code>). Do provide a fallback color if you are using this as a value for <code>background</code> so browsers that do not support the gradients can render a solid background color. </p>
<p>We also suggest you drop old webkit syntax and only use the <a href="https://developer.mozilla.org/en/CSS/-moz-linear-gradient">newer syntax</a> for gradient values and <a href="http://www.broken-links.com/2012/01/11/the-new-and-hopefully-final-linear-gradient-syntax/">not the latest one</a> (yet) until <a href="http://www.w3.org/TR/css3-images/">the spec</a> hits Candidate Recommendation. </p>
</div>
<div class='polyfills'></div>
<p class='links'>
<a href="http://caniuse.com/gradients">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/gradients.md>Edit this info</a>
</p>
</div>
<footer class="tags">fallback prefixes gtie8</footer>
</article>
<article class="none">
<header>
<h3 class="status avoid">avoid <i></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>grids </h2>
</header>
<div class="more">
<div class='recco'>
<p>This is also a spec that is in a flux. Older versions of the spec has found implementation, but you should wait until the spec is more stable to use this. </p>
</div>
<div class='polyfills'></div>
<p class='links'>
<a href="http://caniuse.com/grids">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/grids.md>Edit this info</a>
</p>
</div>
<footer class="tags">none</footer>
</article>
<article class="fallback">
<header>
<h3 class="status use">use <i>with <b class=fallback>fallback</b></i> </h3>
<h4 class="kind api">api</h4>
<h2 class='name'>history </h2>
</header>
<div class="more">
<div class='recco'>
<p><code>pushState</code> gives you real proper URLs along with permalinks to dynamic app state. You can use it and fall back to page refreshes if you'd like. Alternatively, History.js smooths out some browser implementation differences and an and optional hashchange fallback for HTML4 browsers. PJax (pushState + ajax) is what is used by Github for their fallback solution.</p>
</div>
<div class='polyfills'><b>Recommended polyfills: </b><p><a href="https://github.com/balupton/history.js">History.js</a>, <a href="http://pjax.heroku.com/">pjax</a></p></div>
<p class='links'>
<a href="http://caniuse.com/history">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/history.md>Edit this info</a>
</p>
</div>
<footer class="tags">fallback</footer>
</article>
<article class="gtie8,polyfill,article,header,nav">
<header>
<h3 class="status use">use <i>with <b class=polyfill>polyfill</b></i> </h3>
<h4 class="kind html">html</h4>
<h2 class='name'>HTML5 sectioning elements </h2>
</header>
<div class="more">
<div class='recco'>
<p>The new sectioning elements (like <code><header></code>, <code><footer></code>, <code><nav></code>, <code><article></code>, and <code><section></code>) can be used to expose better accessibility to your document structure. All browsers except oldIE (IE <=8) handle these fine. The notes below only apply to oldIE:</p>
<p>The <a href="http://code.google.com/p/html5shiv/">html5shiv</a> enables you to use these in your markup (and Modernizr does the exact same by default). </p>
<p>If you introduce some of these elements later on (via AJAX or templating), html5shiv will also handle this for you (as of v3). <a href="http://blog.jquery.com/2011/11/03/jquery-1-7-released/">jQuery 1.7</a> also has this functionality baked in.</p>
<p>Lastly, if you need these elements to print correctly, use <a href="https://github.com/aFarkas/html5shiv/blob/master/src/html5shiv-printshiv.js">html5shiv-printshiv.js</a> which addresses an IE bug there.</p>
</div>
<div class='polyfills'><b>Recommended polyfills: </b><p><a href="http://code.google.com/p/html5shiv/">html5shiv</a>, <a href="https://github.com/aFarkas/html5shiv/">html5shiv (github)</a></p></div>
<p class='links'>
<a href=https://github.com/h5bp/html5please/blob/master/posts/html5-sectioningelements.md>Edit this info</a>
</p>
</div>
<footer class="tags">gtie8,polyfill,article,header,nav</footer>
</article>
<article class="none prefixes">
<header>
<h3 class="status use">use <i></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>hyphens </h2>
</header>
<div class="more">
<div class='recco'>
<p>CSS3 lets you break words using hyphens. As it does not make text unreadable on browsers which do not support this feature, we recommend you use it without any polyfills or fallbacks. <a href="http://code.google.com/p/hyphenator/">CSS Hyphenator</a> is a polyfill that works on browsers that support the soft hyphen. </p>
</div>
<div class='polyfills'></div>
<p class='links'>
<a href="http://caniuse.com/hyphens">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/hyphens.md>Edit this info</a>
</p>
</div>
<footer class="tags">none prefixes</footer>
</article>
<article class="polyfill, gtie8">
<header>
<h3 class="status caution">caution <i>with <b class=polyfill>polyfill</b></i> </h3>
<h4 class="kind api">api</h4>
<h2 class='name'>IndexedDB </h2>
</header>
<div class="more">
<div class='recco'>
<p>IndexedDB was a volatile spec for a year, but has settled down. In addition to Chrome and Firefox, IE10 will have it; Opera and Safari should have it soon. </p>
<p><a href="https://github.com/jensarps/IDBWrapper">IDBWrapper</a> helps smooth out the cross-browser differences. You may still want to use WebSQL DB when IDB isn't present.</p>
</div>
<div class='polyfills'><b>Recommended polyfills: </b><p><a href="https://github.com/jensarps/IDBWrapper">IDBWrapper</a></p></div>
<p class='links'>
<a href="http://caniuse.com/indexeddb">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/indexeddb.md>Edit this info</a>
</p>
</div>
<footer class="tags">polyfill, gtie8</footer>
</article>
<article class="gtie7, polyfill">
<header>
<h3 class="status use">use <i>with <b class=polyfill>polyfill</b></i> </h3>
<h4 class="kind js">js</h4>
<h2 class='name'>JSON </h2>
</header>
<div class="more">
<div class='recco'>
<p>Crockford's <a href="https://github.com/douglascrockford/JSON-js">JSON2.js</a> is a perfect polyfill, that accounts for non-native implementations (basically only IE6 & IE7 at this point). It's robust, well tested and can be used along with the native feature flawlessly.</p>
</div>
<div class='polyfills'><b>Recommended polyfills: </b><p><a href="https://github.com/douglascrockford/JSON-js">json2.js</a></p></div>
<p class='links'>
<a href="http://caniuse.com/json">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/json.md>Edit this info</a>
</p>
</div>
<footer class="tags">gtie7, polyfill</footer>
</article>
<article class="gtie7 polyfill">
<header>
<h3 class="status use">use <i>with <b class=polyfill>polyfill</b></i> </h3>
<h4 class="kind api">api</h4>
<h2 class='name'>localStorage </h2>
</header>
<div class="more">
<div class='recco'>
<p>Local and session storage are a great way to store data without resorting to cookies. IE8 supported <code>localStorage</code> and <code>sessionStorage</code> so you may not need a polyfill. If you do, Remy's is a piece of cake to immplement and use.</p>
<p>This is a simple key/value store, so if you want to store complex data use <code>JSON.parse(str)</code> and <code>JSON.stringify(obj)</code> on your way in and out. There is also no way to know if you exceeded the storage cross-browser, so wrap your store commands in try/catch. Up to 5MB is safe to use.</p>
</div>
<div class='polyfills'><b>Recommended polyfills: </b><p><a href="https://gist.github.com/350433">Remy's storage polyfill</a>, <a href="http://code.google.com/p/sessionstorage/">sessionstorage</a></p></div>
<p class='links'>
<a href="http://caniuse.com/localstorage">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/localstorage.md>Edit this info</a>
</p>
</div>
<footer class="tags">gtie7 polyfill</footer>
</article>
<article class="none">
<header>
<h3 class="status avoid">avoid <i></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>masks </h2>
</header>
<div class="more">
<div class='recco'>
<p><a href="http://www.webkit.org/blog/181/css-masks/">Masks</a> are not in a spec and are likely never going to be. Filters might be your path to salvation.</p>
</div>
<div class='polyfills'></div>
<p class='links'>
<a href="http://css3clickchart.com/#masks">
Learn more
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/masks.md>Edit this info</a>
</p>
</div>
<footer class="tags">none</footer>
</article>
<article class="polyfill">
<header>
<h3 class="status use">use <i>with <b class=polyfill>polyfill</b></i> </h3>
<h4 class="kind api">api</h4>
<h2 class='name'>matchMedia </h2>
</header>
<div class="more">
<div class='recco'>
<p>matchMedia provides a javascript API to see if a media query will succeed. <a href="https://github.com/paulirish/matchMedia.js/">MatchMedia.js</a> provides a shim for unsupported browsers. If you want a shim that is responsive to window resizing, you can use <a href="http://www.paulrhayes.com/2011-11/use-css-transitions-to-link-media-queries-and-javascript/">this fork</a>, though its limited to browsers that support css transitions.</p>
</div>
<div class='polyfills'></div>
<p class='links'>
<a href=https://github.com/h5bp/html5please/blob/master/posts/match-media.md>Edit this info</a>
</p>
</div>
<footer class="tags">polyfill</footer>
</article>
<article class="gtie8">
<header>
<h3 class="status use">use <i></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>media queries </h2>
</header>
<div class="more">
<div class='recco'>
<p>Media Queries (MQ) work on all modern browsers. OldIE (IE6,7,8) unfortunately do not understand media queries on features, which means none of your CSS within media queries will be parsed by them. We recommend you make peace with that (or use Chrome Frame), but if you absolutely cannot, then you can use <a href="https://github.com/scottjehl/Respond">Respond.js</a>, but be aware it has performance overhead that slows down page load.</p>
</div>
<div class='polyfills'></div>
<p class='links'>
<a href="http://caniuse.com/mediaqueries">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/mediaqueries.md>Edit this info</a>
</p>
</div>
<footer class="tags">gtie8</footer>
</article>
<article class="polyfill noie nomobile">
<header>
<h3 class="status use">use <i>with <b class=polyfill>polyfill</b></i> </h3>
<h4 class="kind html">html</h4>
<h2 class='name'><menu> </h2>
</header>
<div class="more">
<div class='recco'>
<p>Firefox has native contextmenu support, and the below polyfill will enable that for all other browsers.</p>
</div>
<div class='polyfills'><b>Recommended polyfills: </b><p><a href="https://github.com/medialize/jQuery-contextMenu">contextMenu</a></p></div>
<p class='links'>
<a href="http://caniuse.com/menu">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/menu.md>Edit this info</a>
</p>
</div>
<footer class="tags">polyfill noie nomobile</footer>
</article>
<article class="polyfill noie nomobile">
<header>
<h3 class="status use">use <i>with <b class=polyfill>polyfill</b></i> </h3>
<h4 class="kind html">html</h4>
<h2 class='name'><meter> </h2>
</header>
<div class="more">
<div class='recco'>
</div>
<div class='polyfills'><b>Recommended polyfills: </b><p><a href="https://gist.github.com/667320">meter-polyfill</a>, <a href="https://github.com/xjamundx/HTML5-Meter-Shim">jQuery shim</a></p></div>
<p class='links'>
<a href="http://caniuse.com/meter">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/meter.md>Edit this info</a>
</p>
</div>
<footer class="tags">polyfill noie nomobile</footer>
</article>
<article class="fallback, gtie6">
<header>
<h3 class="status use">use <i>with <b class=fallback>fallback</b></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>min/max-width/height </h2>
</header>
<div class="more">
<div class='recco'>
<p><code>min-width</code>, <code>max-height</code>, etc are supported everywhere as of IE7. The <a href="http://www.dustindiaz.com/min-height-fast-hack/">min-height fast hack</a> has long been a reliable way of implementing min-height, but as many have sunsetted IE6 support, you likely don't need to worry about fallback anymore.</p>
<p>Use all you like without fallback; certainly do not use CSS expressions to mimic this behavior.</p>
</div>
<div class='polyfills'></div>
<p class='links'>
<a href=https://github.com/h5bp/html5please/blob/master/posts/minmax-widthheight.md>Edit this info</a>
</p>
</div>
<footer class="tags">fallback, gtie6</footer>
</article>
<article class="fallback gtie8">
<header>
<h3 class="status use">use <i>with <b class=fallback>fallback</b></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>multiple backgrounds </h2>
</header>
<div class="more">
<div class='recco'>
<p>Multiple backgrounds when unsupported <a href="http://snook.ca/archives/html_and_css/multiple-bg-css-gradients">are ignored completely</a>. If you can make do with a simple background color, make sure to declare <code>background-color: <color></code> before you start using multiple backgrounds or you can also set an image as a background with <code>background-image</code> and override it with a second background declaration. We strongly recommend you don't polyfill this.</p>
</div>
<div class='polyfills'></div>
<p class='links'>
<a href="http://caniuse.com/multibackgrounds">
View browser share %
</a>
<a href=https://github.com/h5bp/html5please/blob/master/posts/multibackgrounds.md>Edit this info</a>
</p>
</div>
<footer class="tags">fallback gtie8</footer>
</article>
<article class="prefixes gtie9">
<header>
<h3 class="status use">use <i></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>multicolumn </h2>
</header>
<div class="more">
<div class='recco'>
<p>IE, and Opera support CSS3 Multicol without prefixes. So you only need <code>-webkit</code> and <code>-moz</code>. We recommend you do not polyfill this and let it fall back to single column text.</p>
</div>
<div class='polyfills'></div>
<p class='links'>
<a href="http://caniuse.com/multicolumn">
View browser share %
</a>