Add HTML5 support to CGI
The attached patch adds support for HTML 5, providing
the doctype <!DOCTYPE html> and the tag helpers for the
new HTML elements (article, section, ...).
Changes were made in
Tests were added to
((Notice:)) the new HTML5 `header' element has ((not)) been added,
because it collides with the already defined CGI#header
method that creates the HTTP header block.
To avoid unreflected addition of this element, a test has
been included to make sure that CGI#header won't break.
Detailed list of changes in `html.rb' (in comparison to HTML 4 strict):
- doctype changed
- new elements added
- removed elements: tt, big, acronym
- void elements: area, base, br, col, command, embed, hr, img, input, keygen, link, meta, param, source, track, wbr
- new elements with optional end tag: optgroup, rt, rp
See the Editor's Draft of the HTML5 specification (15 June 2012):