Project

General

Profile

Actions

Bug #8252

closed

cgiのHTML tag makerに未定義の属性を渡した場合の挙動

Added by naruse (Yui NARUSE) over 11 years ago. Updated over 11 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.1.0dev (2013-04-11 trunk 40238) [x86_64-freebsd9.1]
Backport:
[ruby-dev:47246]

Description

r40237 で以下の通り、定義されていない属性を渡したときの挙動が変化しているのですが意図していますか

  • )
    +CGI::HtmlExtension#html when passed a Hash returns an 'html'-element using the passed Hash for attributes FAILED
    +Expected ""
    +to equal "<HTML BLA="TEST">"

+/extdisk/chkbuild/chkbuild/tmp/build//rubyspec/library/cgi/htmlextension/html_spec.rb:<line_a>:in block (3 levels) in <top (required)>' +/extdisk/chkbuild/chkbuild/tmp/build/<buildtime>/rubyspec/library/cgi/htmlextension/html_spec.rb:<line_a>:in <top (required)>'

http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20130411T081100Z.diff.html.gz

Updated by xibbar (Takeyuki FUJIOKA) over 11 years ago

いえ、考慮不足です。
修正します。

Actions #2

Updated by xibbar (Takeyuki FUJIOKA) over 11 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r40242.
Yui, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • lib/cgi/html.rb: fix tagmaker because attributes should recognize.
    [Bug #8252]
Actions

Also available in: Atom PDF

Like0
Like0Like0