Closed
Bug 143693
Opened 23 years ago
Closed 23 years ago
Text and password inputs not sized correctly by size attribute
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 141526
People
(Reporter: jacobs, Assigned: rods)
Details
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc2)
Gecko/20020510
BuildID: 2002051006
The attached example will display a form with
a number of INPUT elements of type "text" and
"password". They are all supposed to be 8
characters in width. The font family has been
set to "monospace" to make measurement
determinate. The controls are 9 characters wide.
Reproducible: Always
Steps to Reproduce:
1.Navigate to the sample page.
2.Observe the controls containing "123456789".
Actual Results: The INPUT elements are rendered 9 characters
wide.
Expected Results: The controls should be 8 characters wide. The
INPUTs that display "123456789" should display
"12345678".
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>INPUT maxlength</title>
</head>
<body>
<form>
<label for="firstname">type=text: </label>
<input type="text" id="firstname"
style="background-color:lightgray;font-family:monospace" size="8"
maxlength="4" value="1234"><br>
<label for="pword">type=password: </label>
<input type="password" id="pword"
style="background-color:lightgray;font-family:monospace" size="8"
maxlength="4" value="1234"><br>
<input type="text" id="firstname"
style="background-color:lightgray;font-family:monospace" size="8"
maxlength="10" value="1234"><br>
<label for="pword">type=password: </label>
<input type="password" id="pword"
style="background-color:lightgray;font-family:monospace" size="8"
maxlength="10" value="1234"><br>
<input type="text" id="firstname"
style="background-color:lightgray;font-family:monospace" size="8"
maxlength="10" value="1234567890"><br>
<label for="pword">type=password: </label>
<input type="password" id="pword"
style="background-color:lightgray;font-family:monospace" size="8"
maxlength="10" value="1234567890"><br>
</form>
</body>
</html>
Comment 1•23 years ago
|
||
*** This bug has been marked as a duplicate of 141526 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•