]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/bugs/html5_support.mdwn
avoid clobbering origsub if checkconfig runs more than once
[git.ikiwiki.info.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/).
6 [[!template id=gitbranch branch=hendry/html5 author="[[Kai_Hendry|hendry]]"]]
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
12 # htmlscrubber.pm needs to not scrub new HTML5 elements
14 * [new elements](http://www.w3.org/TR/html5-diff/#new-elements)
16 # HTML5 Validation and t/html.t
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.
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).
28 # HTML5 migration issues
30 # [article](http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-article-element) element
32 This element is poorly supported by browsers. As a workaround, `style.css` needs:
34         article {
35                 display: block;
36         }
38 Internet Explorer will display it as a block, though you can't seem to be able to further control the style.
40 ## Time element
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).
44 As a workaround:
46         au:~% grep timeformat natalian.setup
47         timeformat => '%Y-%m-%d',