Tk Library Source Code

View Ticket
Login
Ticket UUID: 1230699
Title: ::html::textInput size attribute always default
Type: Bug Version: None
Submitter: nobody Created on: 2005-07-01 02:44:42
Subsystem: html Assigned To: welch
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2007-09-14 15:35:36
Resolution: Duplicate Closed By: mic42
    Closed on: 2006-07-02 20:01:47
Description:
The output of
    html::textInput name "" size="15"
is
    <input type="text" name="name" value="" size="45" size=15>
which results in a field of size 45 (the second size=15 parameter
is apparently ignored.)

I think the fix is as follows:

In html.tcl, proc ::html::textInput, the line
    append html [default input.size]
should be
    append html [default input.size $args]


Thanks,
Greg

[email protected]
User Comments: [email protected] added on 2007-09-14 15:35:36:
Logged In: NO 

to win :

html::init {text.size ""}
puts [::html::textInput "txt" "myValue" {size="23"}]

mic42 added on 2006-07-03 03:01:47:
Logged In: YES 
user_id=302287

fixed in version 1.3.2

mic42 added on 2005-07-05 20:53:34:
Logged In: YES 
user_id=302287

This is a duplicate to:
http://sourceforge.net/tracker/index.php?func=detail&aid=870429&group_id=12883&atid=112883
Bug: 870429.

Michael