Project

General

Profile

Actions

Feature #6637

closed

Add HTML5 support to CGI

Added by stomar (Marcus Stollsteimer) over 12 years ago. Updated about 12 years ago.

Status:
Closed
Target version:
[ruby-core:45812]

Description

=begin
The attached patch adds support for HTML 5, providing
the doctype 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


Files

html5_support_lib_cgi.patch (3.46 KB) html5_support_lib_cgi.patch stomar (Marcus Stollsteimer), 06/24/2012 06:53 AM
6637.pdf (64.8 KB) 6637.pdf stomar (Marcus Stollsteimer), 07/02/2012 01:54 AM

Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #7110: CGI: Add support for HTML5 <header> tagClosedxibbar (Takeyuki FUJIOKA)10/05/2012Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0