Issue #7110 has been reported by stomar (Marcus Stollsteimer). ---------------------------------------- Bug #7110: CGI: Add support for HTML5 <header> tag https://bugs.ruby-lang.org/issues/7110 Author: stomar (Marcus Stollsteimer) Status: Open Priority: Normal Assignee: xibbar (Takeyuki Fujioka) Category: lib Target version: 2.0.0 ruby -v: ruby 2.0.0dev (2012-09-28 trunk 37049) [i686-linux] =begin These patches add the <header> tag to CGI's HTML generation methods, finalizing the support of HTML5, see #6637. Note that the old CGI#header method is renamed to CGI#http_header. CGI#header now generates a HTML5 header element. =end
on 2012-10-05 15:22
on 2012-11-03 13:03
Issue #7110 has been updated by mame (Yusuke Endoh). Status changed from Open to Assigned xibbar, are you willing to include this in 2.0.0? If so, please commit it ASAP, before preview2 (planned at 1 Dec.) at the latest. -- Yusuke Endoh <mame@tsg.ne.jp> ---------------------------------------- Bug #7110: CGI: Add support for HTML5 <header> tag https://bugs.ruby-lang.org/issues/7110#change-32293 Author: stomar (Marcus Stollsteimer) Status: Assigned Priority: Normal Assignee: xibbar (Takeyuki Fujioka) Category: lib Target version: 2.0.0 ruby -v: ruby 2.0.0dev (2012-09-28 trunk 37049) [i686-linux] =begin These patches add the <header> tag to CGI's HTML generation methods, finalizing the support of HTML5, see #6637. Note that the old CGI#header method is renamed to CGI#http_header. CGI#header now generates a HTML5 header element. =end
on 2012-11-03 23:12
Issue #7110 has been updated by zzak (Zachary Scott). I think CGI#header should stay the same, and this method to product html5 compatible headers should be CGI#html_header ---------------------------------------- Bug #7110: CGI: Add support for HTML5 <header> tag https://bugs.ruby-lang.org/issues/7110#change-32313 Author: stomar (Marcus Stollsteimer) Status: Assigned Priority: Normal Assignee: xibbar (Takeyuki Fujioka) Category: lib Target version: 2.0.0 ruby -v: ruby 2.0.0dev (2012-09-28 trunk 37049) [i686-linux] =begin These patches add the <header> tag to CGI's HTML generation methods, finalizing the support of HTML5, see #6637. Note that the old CGI#header method is renamed to CGI#http_header. CGI#header now generates a HTML5 header element. =end
on 2012-11-04 01:51
Issue #7110 has been updated by mame (Yusuke Endoh). I recommend xibber to postpone this to next minor, if there is room to discuss anything about the spec of this feature (such as a method name). -- Yusuke Endoh <mame@tsg.ne.jp> ---------------------------------------- Bug #7110: CGI: Add support for HTML5 <header> tag https://bugs.ruby-lang.org/issues/7110#change-32318 Author: stomar (Marcus Stollsteimer) Status: Assigned Priority: Normal Assignee: xibbar (Takeyuki Fujioka) Category: lib Target version: 2.0.0 ruby -v: ruby 2.0.0dev (2012-09-28 trunk 37049) [i686-linux] =begin These patches add the <header> tag to CGI's HTML generation methods, finalizing the support of HTML5, see #6637. Note that the old CGI#header method is renamed to CGI#http_header. CGI#header now generates a HTML5 header element. =end
on 2012-11-04 01:52
Issue #7110 has been updated by mame (Yusuke Endoh). Sorry, xibber -> xibbar. ---------------------------------------- Bug #7110: CGI: Add support for HTML5 <header> tag https://bugs.ruby-lang.org/issues/7110#change-32319 Author: stomar (Marcus Stollsteimer) Status: Assigned Priority: Normal Assignee: xibbar (Takeyuki Fujioka) Category: lib Target version: 2.0.0 ruby -v: ruby 2.0.0dev (2012-09-28 trunk 37049) [i686-linux] =begin These patches add the <header> tag to CGI's HTML generation methods, finalizing the support of HTML5, see #6637. Note that the old CGI#header method is renamed to CGI#http_header. CGI#header now generates a HTML5 header element. =end
on 2012-11-04 09:17
Issue #7110 has been updated by stomar (Marcus Stollsteimer). I really think for the proposed patch 2.0 would be the best place. @zzak: I can not judge how big the impact of renaming CGI#header would be. BUT: Your proposal would mean that the <header> tag would have to be treated differently to all the other HTML tags (#h1, #form, #br, ...), which for the users of the tag maker would be a fairly unexpected behaviour. Personally, I would prefer consistent behaviour for all tags. In case the decision goes with introducing a special method for this single tag, I would suggest #header_element (maybe #header_tag) instead of #html_header, which to me rather signifies the doctype, html meta data, etc. ---------------------------------------- Bug #7110: CGI: Add support for HTML5 <header> tag https://bugs.ruby-lang.org/issues/7110#change-32334 Author: stomar (Marcus Stollsteimer) Status: Assigned Priority: Normal Assignee: xibbar (Takeyuki Fujioka) Category: lib Target version: 2.0.0 ruby -v: ruby 2.0.0dev (2012-09-28 trunk 37049) [i686-linux] =begin These patches add the <header> tag to CGI's HTML generation methods, finalizing the support of HTML5, see #6637. Note that the old CGI#header method is renamed to CGI#http_header. CGI#header now generates a HTML5 header element. =end
on 2012-11-04 11:25
Issue #7110 has been updated by xibbar (Takeyuki Fujioka). I think this function should be included in 2.0.0 So, I will commit. Sorry late. ---------------------------------------- Bug #7110: CGI: Add support for HTML5 <header> tag https://bugs.ruby-lang.org/issues/7110#change-32335 Author: stomar (Marcus Stollsteimer) Status: Assigned Priority: Normal Assignee: xibbar (Takeyuki Fujioka) Category: lib Target version: 2.0.0 ruby -v: ruby 2.0.0dev (2012-09-28 trunk 37049) [i686-linux] =begin These patches add the <header> tag to CGI's HTML generation methods, finalizing the support of HTML5, see #6637. Note that the old CGI#header method is renamed to CGI#http_header. CGI#header now generates a HTML5 header element. =end
on 2012-11-04 15:16
Issue #7110 has been updated by stomar (Marcus Stollsteimer).
Perhaps a note should be added to NEWS, maybe something like
* cgi
* incompatible changes:
* CGI#header has been renamed to CGI#http_header.
CGI#header is now used by the HTML5 tag maker to
create a <header> element.
----------------------------------------
Bug #7110: CGI: Add support for HTML5 <header> tag
https://bugs.ruby-lang.org/issues/7110#change-32341
Author: stomar (Marcus Stollsteimer)
Status: Closed
Priority: Normal
Assignee: xibbar (Takeyuki Fujioka)
Category: lib
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-09-28 trunk 37049) [i686-linux]
=begin
These patches add the <header> tag to CGI's HTML generation methods,
finalizing the support of HTML5, see #6637.
Note that the old CGI#header method is renamed to CGI#http_header.
CGI#header now generates a HTML5 header element.
=end
on 2012-11-04 20:00
In my opinion compatibility is more important than consistency, but ultimately it is up to xibbar. Other ruby-core share this sentiment, see ruby-core:48469 On Sun, Nov 4, 2012 at 9:15 AM, stomar (Marcus Stollsteimer)
on 2012-11-04 20:15
Issue #7110 has been updated by zzak (Zachary Scott). In my opinion compatibility is more important than consistency, but ultimately it is up to xibbar. Other ruby-core share this sentiment, see ruby-core:48469 ---------------------------------------- Bug #7110: CGI: Add support for HTML5 <header> tag https://bugs.ruby-lang.org/issues/7110#change-32344 Author: stomar (Marcus Stollsteimer) Status: Closed Priority: Normal Assignee: xibbar (Takeyuki Fujioka) Category: lib Target version: 2.0.0 ruby -v: ruby 2.0.0dev (2012-09-28 trunk 37049) [i686-linux] =begin These patches add the <header> tag to CGI's HTML generation methods, finalizing the support of HTML5, see #6637. Note that the old CGI#header method is renamed to CGI#http_header. CGI#header now generates a HTML5 header element. =end
on 2012-11-04 21:13
Issue #7110 has been updated by stomar (Marcus Stollsteimer). > In my opinion compatibility is more important than consistency, but > ultimately it is up to xibbar. > > Other ruby-core share this sentiment, see ruby-core:48469 I don't think a general rule can be derived from this single statement. Also, the circumstances are different. Here, it is more a question of avoiding inconsistent and unexpected behaviour than of adding some "would be nice to have" method. But don't understand me wrong, I'm all for compatibility. Maybe a point that would have to be considered is whether this change can be regarded as a mostly internal change of a method that is usually not called directly by the average user of the library, or not. ---------------------------------------- Bug #7110: CGI: Add support for HTML5 <header> tag https://bugs.ruby-lang.org/issues/7110#change-32346 Author: stomar (Marcus Stollsteimer) Status: Closed Priority: Normal Assignee: xibbar (Takeyuki Fujioka) Category: lib Target version: 2.0.0 ruby -v: ruby 2.0.0dev (2012-09-28 trunk 37049) [i686-linux] =begin These patches add the <header> tag to CGI's HTML generation methods, finalizing the support of HTML5, see #6637. Note that the old CGI#header method is renamed to CGI#http_header. CGI#header now generates a HTML5 header element. =end
on 2012-11-05 01:30
Issue #7110 has been updated by xibbar (Takeyuki Fujioka). stomar (Marcus Stollsteimer) wrote: > Perhaps a note should be added to NEWS, maybe something like > > * cgi > * incompatible changes: > * CGI#header has been renamed to CGI#http_header. > CGI#header is now used by the HTML5 tag maker to > create a <header> element. Thank you. I will add. ---------------------------------------- Bug #7110: CGI: Add support for HTML5 <header> tag https://bugs.ruby-lang.org/issues/7110#change-32348 Author: stomar (Marcus Stollsteimer) Status: Closed Priority: Normal Assignee: xibbar (Takeyuki Fujioka) Category: lib Target version: 2.0.0 ruby -v: ruby 2.0.0dev (2012-09-28 trunk 37049) [i686-linux] =begin These patches add the <header> tag to CGI's HTML generation methods, finalizing the support of HTML5, see #6637. Note that the old CGI#header method is renamed to CGI#http_header. CGI#header now generates a HTML5 header element. =end
on 2012-11-05 01:33
Issue #7110 has been updated by xibbar (Takeyuki Fujioka). I decide this change. Because minor version up is is more important than consistency. But 2.0 is major version up. HTML5 will be gradually standard format. ---------------------------------------- Bug #7110: CGI: Add support for HTML5 <header> tag https://bugs.ruby-lang.org/issues/7110#change-32349 Author: stomar (Marcus Stollsteimer) Status: Closed Priority: Normal Assignee: xibbar (Takeyuki Fujioka) Category: lib Target version: 2.0.0 ruby -v: ruby 2.0.0dev (2012-09-28 trunk 37049) [i686-linux] =begin These patches add the <header> tag to CGI's HTML generation methods, finalizing the support of HTML5, see #6637. Note that the old CGI#header method is renamed to CGI#http_header. CGI#header now generates a HTML5 header element. =end
on 2012-11-05 02:11
Issue #7110 has been updated by zzak (Zachary Scott). xibbar, it is your decision to make, and I support it. Thank you. ---------------------------------------- Bug #7110: CGI: Add support for HTML5 <header> tag https://bugs.ruby-lang.org/issues/7110#change-32352 Author: stomar (Marcus Stollsteimer) Status: Closed Priority: Normal Assignee: xibbar (Takeyuki Fujioka) Category: lib Target version: 2.0.0 ruby -v: ruby 2.0.0dev (2012-09-28 trunk 37049) [i686-linux] =begin These patches add the <header> tag to CGI's HTML generation methods, finalizing the support of HTML5, see #6637. Note that the old CGI#header method is renamed to CGI#http_header. CGI#header now generates a HTML5 header element. =end
on 2012-11-06 13:13
Issue #7110 has been updated by xibbar (Takeyuki Fujioka). Curretly, some japanese programmer talk about compatibility. #7286 Many traditional web applications use cgi.rb . This change give a impact to these applications. Some committer said that cgi.rb 's importance is traditional code can run. I agee them. If you have better idea, please write here or #7286. We are discussing in #7286 . ---------------------------------------- Bug #7110: CGI: Add support for HTML5 <header> tag https://bugs.ruby-lang.org/issues/7110#change-32495 Author: stomar (Marcus Stollsteimer) Status: Closed Priority: Normal Assignee: xibbar (Takeyuki Fujioka) Category: lib Target version: 2.0.0 ruby -v: ruby 2.0.0dev (2012-09-28 trunk 37049) [i686-linux] =begin These patches add the <header> tag to CGI's HTML generation methods, finalizing the support of HTML5, see #6637. Note that the old CGI#header method is renamed to CGI#http_header. CGI#header now generates a HTML5 header element. =end
on 2012-11-06 13:32
Issue #7110 has been updated by mame (Yusuke Endoh).
Let me complement. xibbar suggested three options:
1. Just delete the old header method (current)
2. Change CGI#header only before HTML4 mode
3. Change CGI#header only in HTML5 mode
(I don't know any merit of (2), I guess it is typo)
We are mainly considering (3).
puts CGI.new .header #=> "Content-Type: text/html" +
deprecated warning
puts CGI.new("html4").header #=> "Content-Type: text/html" +
deprecated warning
puts CGI.new("html5").header #=> "<HEADER></HEADER>"
Knu suggested more delicate way:
- CGI#header should emit a tag when a block is given, and
- CGI#header should emit a tag when it is called in a block of other
tag-generating methods.
--
Yusuke Endoh <mame@tsg.ne.jp>
----------------------------------------
Bug #7110: CGI: Add support for HTML5 <header> tag
https://bugs.ruby-lang.org/issues/7110#change-32496
Author: stomar (Marcus Stollsteimer)
Status: Closed
Priority: Normal
Assignee: xibbar (Takeyuki Fujioka)
Category: lib
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-09-28 trunk 37049) [i686-linux]
=begin
These patches add the <header> tag to CGI's HTML generation methods,
finalizing the support of HTML5, see #6637.
Note that the old CGI#header method is renamed to CGI#http_header.
CGI#header now generates a HTML5 header element.
=end
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.