]> sipb.mit.edu Git - ikiwiki.git/blob - doc/tips/html5.mdwn
major overhaul - mention my project as the main one for moinmoin but keep a reference...
[ikiwiki.git] / doc / tips / html5.mdwn
1 First, if you just want to embed videos using the html5 `<video>` tag,
2 you can do that without switching anything else to html5.
3 However, if you want to fully enter the brave new world of html5, read on..
4
5 Currently, ikiwiki does not use html5 by default. There is a `html5`
6 setting that can be turned on, in your setup file. Rebuild with it set, and
7 lots of fancy new semantic tags will be used all over the place.
8
9 You may need to adapt your CSS for html5. While all the class and id names
10 are the same, some of the `div` elements are changed to other things.
11 Ikiwiki's default CSS will work in both modes.
12
13 The html5 support is still experimental, and may break in some browsers.
14 No care is taken to add backwards compatibility hacks for browsers that
15 are not html5 aware (like MSIE). If you want to include the javascript with
16 those hacks, you can edit `page.tmpl` to do so. 
17 [Dive Into HTML5](http://diveintohtml5.info/) is a good reference for
18 current compatability issues and workarounds with html5.  And a remotely-loadable
19 JS shiv for enabling HTML5 elements in IE is available through [html5shiv at Google Code](http://code.google.com/p/html5shiv/).
20
21 ---
22
23 Known ikiwiki-specific issues:
24
25 * [[plugins/htmltidy]] uses `tidy`, which is not html5 aware, so if you
26   have that enabled, it will mangle it back to html4.
27 * [[plugins/toc]] does not understand the html5 outline algorithm.