From: "stomar (Marcus Stollsteimer)" <redmine@...>
Date: 2012-10-04T19:32:41+09:00
Subject: [ruby-core:47831] [ruby-trunk - Feature #6637] Add HTML5 support to CGI


Issue #6637 has been updated by stomar (Marcus Stollsteimer).


=begin
Hi Takeyuki,

Did you consider the issue with the <header> tag?
At the moment it can not be created with the tag writer
like the other tags. I proposed a possible solution
in my previous posts.

Do you have any thoughts about this point?

Regards,
Marcus

BTW. I would have appreciated being mentioned in
the log message, like it's done by other committers
("patch by ..."), considerung the effort I put into this.
=end

----------------------------------------
Feature #6637: Add HTML5 support to CGI
https://bugs.ruby-lang.org/issues/6637#change-30020

Author: stomar (Marcus Stollsteimer)
Status: Closed
Priority: Normal
Assignee: xibbar (Takeyuki Fujioka)
Category: lib
Target version: 2.0.0


=begin
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
* `lib/cgi/core.rb'
* `lib/cgi/html.rb'

Tests were added to
* `test/cgi/test_cgi_core.rb'

((*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):
((<URL:http://dev.w3.org/html5/spec/>)).
=end


-- 
http://bugs.ruby-lang.org/