Merge branch 'master' into po
[ikiwiki] / 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 * [HTML5 branch](http://git.webconverger.org/?p=ikiwiki;h=refs/heads/html5)
7 * [ikiwiki instance with HTML5 templates](http://natalian.org)
8
9 # HTML5 Validation and t/html.t
10
11 [validator.nu](http://validator.nu/) is the authorative HTML5 validator,
12 however it is almost impossible to sanely introduce as a build dependency
13 because of its insane Java requirements. :( I test locally via
14 [cURL](http://wiki.whatwg.org/wiki/IDE), though Debian packages cannot be built
15 with a network dependency.
16
17 In the future, hopefully ikiwiki can test for valid HTML5 using [Relax NG
18 schema](http://syntax.whattf.org/) using a Debian package tool
19 [rnv](http://packages.qa.debian.org/r/rnv.html).
20
21 # HTML5 migration issues
22
23 # [article](http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-article-element) element
24
25 This element is poorly supported by browsers. As a workaround, `style.css` needs:
26
27         article {
28                 display: block;
29         }
30
31 Internet Explorer will display it as a block, though you can't seem to be further control the style.
32
33 # Validator complains with no h1-h6 in header
34
35 * [#509](http://bugzilla.validator.nu/show_bug.cgi?id=509)
36
37 ## Time element
38
39 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).
40
41 As a workaround:
42
43         au:~% grep timeformat natalian.setup
44         timeformat => '%Y-%m-%d',