diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-05-01 09:38:01 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-05-01 09:38:01 +0000 |
commit | 8145a071a9acc46541a8967d031a872d15065842 (patch) | |
tree | 082ba11a11351baf7b1afad6e267ff9ca1968c1b /lib | |
parent | 11a1286fe10c6e6fd3b56708958f04b5d0189f2b (diff) |
* file.c (rb_find_file): load must be done from an abolute path if
$SAFE >= 4.
* re.c (rb_reg_s_quote): quote whitespaces for /x cases.
* eval.c (rb_thread_cleanup): should not terminate main_thread by
Fatal error.
* regex.c (is_in_list): need to not exclude NUL and NEWLINE.
* re.c (rb_reg_expr_str): wrong backslash escapement.
* re.c (rb_reg_expr_str): do not escape embedded space
characters.
* eval.c (rb_thread_cleanup): current thread may be THREAD_STOPPED,
for example when terminated from signal handler.
* re.c (rb_reg_expr_str): should treat backslash specially in
escaping.
* bignum.c (rb_big_eq): check `y == x' if y is neither Fixnum,
Bignum, nor Float.
* pack.c (pack_unpack): should treat 'U' in character unit, not in
byte unit.
* marshal.c (w_uclass): should check based on rb_obj_class(), not
CLASS_OF().
* io.c (io_write): check error if written data is less than
specified size to detect EPIPE.
* eval.c (assign): ruby_verbose should be surrounded by RTEST().
* object.c (rb_str2cstr): ditto.
* parse.y (void_expr): ditto.
* parse.y (void_stmts): ditto.
* variable.c (rb_ivar_get): ditto.
* variable.c (rb_cvar_set): ditto.
* variable.c (rb_cvar_get): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cgi.rb | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb index c86ac32306..d90466ddb2 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -1164,12 +1164,12 @@ convert string charset, and set language to "ja". checkbox_group("name", ["foo"], ["bar", true], "baz") # <INPUT TYPE="checkbox" NAME="name" VALUE="foo">foo - # <INPUT TYPE="checkbox" SELECTED NAME="name" VALUE="bar">bar + # <INPUT TYPE="checkbox" CHECKED NAME="name" VALUE="bar">bar # <INPUT TYPE="checkbox" NAME="name" VALUE="baz">baz checkbox_group("name", ["1", "Foo"], ["2", "Bar", true], "Baz") # <INPUT TYPE="checkbox" NAME="name" VALUE="1">Foo - # <INPUT TYPE="checkbox" SELECTED NAME="name" VALUE="2">Bar + # <INPUT TYPE="checkbox" CHECKED NAME="name" VALUE="2">Bar # <INPUT TYPE="checkbox" NAME="name" VALUE="Baz">Baz checkbox_group({ "NAME" => "name", @@ -1211,7 +1211,7 @@ convert string charset, and set language to "ja". # <INPUT TYPE="file" NAME="name" SIZE="40"> file_field("name", 40, 100) - # <INPUT TYPE="file" NAME="name" SIZE="40", MAXLENGTH="100"> + # <INPUT TYPE="file" NAME="name" SIZE="40" MAXLENGTH="100"> file_field({ "NAME" => "name", "SIZE" => 40 }) # <INPUT TYPE="file" NAME="name" SIZE="40"> @@ -1370,7 +1370,7 @@ The hash keys are case sensitive. Ask the samples. # <INPUT TYPE="image" SRC="url"> image_button("url", "name", "string") - # <INPUT TYPE="image" SRC="url" NAME="name", ALT="string"> + # <INPUT TYPE="image" SRC="url" NAME="name" ALT="string"> image_button({ "SRC" => "url", "ATL" => "strng" }) # <INPUT TYPE="image" SRC="url" ALT="string"> @@ -1391,10 +1391,10 @@ The hash keys are case sensitive. Ask the samples. =begin === IMG ELEMENT img("src", "alt", 100, 50) - # <IMG SRC="src" ALT="alt" WIDTH="100", HEIGHT="50"> + # <IMG SRC="src" ALT="alt" WIDTH="100" HEIGHT="50"> img({ "SRC" => "src", "ALT" => "alt", "WIDTH" => 100, "HEIGHT" => 50 }) - # <IMG SRC="src" ALT="alt" WIDTH="100", HEIGHT="50"> + # <IMG SRC="src" ALT="alt" WIDTH="100" HEIGHT="50"> =end def img(src = "", alt = "", width = nil, height = nil) attributes = if src.kind_of?(String) @@ -1448,7 +1448,7 @@ The hash keys are case sensitive. Ask the samples. # <INPUT TYPE="password" NAME="name" VALUE="value" SIZE="40"> password_field("password", "value", 80, 200) - # <INPUT TYPE="password" NAME="name" VALUE="value", SIZE="80", MAXLENGTH="200"> + # <INPUT TYPE="password" NAME="name" VALUE="value" SIZE="80" MAXLENGTH="200"> password_field({ "NAME" => "name", "VALUE" => "value" }) # <INPUT TYPE="password" NAME="name" VALUE="value"> @@ -1534,10 +1534,10 @@ The hash keys are case sensitive. Ask the samples. =begin === RADIO_BUTTON radio_button("name", "value") - # <INPUT TYPE="radio" NAME="name", VALUE="value"> + # <INPUT TYPE="radio" NAME="name" VALUE="value"> radio_button("name", "value", true) - # <INPUT TYPE="radio" NAME="name", VALUE="value", CHECKED> + # <INPUT TYPE="radio" NAME="name" VALUE="value" CHECKED> radio_button({ "NAME" => "name", "VALUE" => "value", "ID" => "foo" }) # <INPUT TYPE="radio" NAME="name" VALUE="value" ID="foo"> @@ -1563,12 +1563,12 @@ The hash keys are case sensitive. Ask the samples. radio_group("name", ["foo"], ["bar", true], "baz") # <INPUT TYPE="radio" NAME="name" VALUE="foo">foo - # <INPUT TYPE="radio" SELECTED NAME="name" VALUE="bar">bar + # <INPUT TYPE="radio" CHECKED NAME="name" VALUE="bar">bar # <INPUT TYPE="radio" NAME="name" VALUE="baz">baz radio_group("name", ["1", "Foo"], ["2", "Bar", true], "Baz") # <INPUT TYPE="radio" NAME="name" VALUE="1">Foo - # <INPUT TYPE="radio" SELECTED NAME="name" VALUE="2">Bar + # <INPUT TYPE="radio" CHECKED NAME="name" VALUE="2">Bar # <INPUT TYPE="radio" NAME="name" VALUE="Baz">Baz radio_group({ "NAME" => "name", @@ -1670,10 +1670,10 @@ The hash keys are case sensitive. Ask the samples. # <INPUT TYPE="text" NAME="name" VALUE="value" SIZE="40"> text_field("name", "value", 80) - # <INPUT TYPE="text" NAME="name" VALUE="value", SIZE="80"> + # <INPUT TYPE="text" NAME="name" VALUE="value" SIZE="80"> text_field("name", "value", 80, 200) - # <INPUT TYPE="text" NAME="name" VALUE="value", SIZE="80", MAXLENGTH="200"> + # <INPUT TYPE="text" NAME="name" VALUE="value" SIZE="80" MAXLENGTH="200"> text_field({ "NAME" => "name", "VALUE" => "value" }) # <INPUT TYPE="text" NAME="name" VALUE="value"> |