]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/html5_support.mdwn
(no commit message)
[ikiwiki.git] / doc / bugs / html5_support.mdwn
1 Some elements of
2 [HTML5](http://www.whatwg.org/specs/web-apps/current-work/multipage/) can be
3 safely supported by ikiwiki. There are [several differences between HTML4 and
4 HTML5](http://www.w3.org/TR/html5-diff/).
5
6 [[!template id=gitbranch branch=hendry/html5 author="[[Kai_Hendry|hendry]]"]]
7
8 * [HTML5 branch](http://git.webconverger.org/?p=ikiwiki;h=refs/heads/html5)
9 * [ikiwiki instance with HTML5 templates](http://natalian.org)
10 * [HTML5 outliner tool](http://gsnedders.html5.org/outliner/) -- to check you have the structure of your markup correct
11
12 # htmlscrubber.pm needs to not scrub new HTML5 elements
13
14 * [new elements](http://www.w3.org/TR/html5-diff/#new-elements)
15
16 # HTML5 Validation and t/html.t
17
18 [validator.nu](http://validator.nu/) is the authorative HTML5 validator,
19 however it is almost impossible to sanely introduce as a build dependency
20 because of its insane Java requirements. :( I test locally via
21 [cURL](http://wiki.whatwg.org/wiki/IDE), though Debian packages cannot be built
22 with a network dependency.
23
24 In the future, hopefully ikiwiki can test for valid HTML5 using [Relax NG
25 schema](http://syntax.whattf.org/) using a Debian package tool
26 [rnv](http://packages.qa.debian.org/r/rnv.html).
27
28 # HTML5 migration issues
29
30 # [article](http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-article-element) element
31
32 This element is poorly supported by browsers. As a workaround, `style.css` needs:
33
34         article {
35                 display: block;
36         }
37
38 Internet Explorer will display it as a block, though you can't seem to be able to further control the style.
39
40 ## Time element
41
42 The [time element](http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-time-element) ideally needs the datatime= attribute set by a template variable with what [HTML5 defines as a valid datetime string](http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#valid-global-date-and-time-string).
43
44 As a workaround:
45
46         au:~% grep timeformat natalian.setup
47         timeformat => '%Y-%m-%d',