Closed
Bug 306687
Opened 20 years ago
Closed 10 years ago
Use explicit type="text" attribute for text fields.
Categories
(Bugzilla :: User Interface, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: strigeus, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Please use an explicit type="text" attribute for all text fields. The current
behavior relies on type defaulting to "text", but that makes it very hard to
make style sheets that affect text boxes only.
i.e. Change:
<input name="cc" value="" size="45">
to
<input type="text" name="cc" value="" size="45">
Reproducible: Always
Updated•20 years ago
|
Assignee: general → myk
Component: Bugzilla-General → User Interface
OS: Windows XP → All
Hardware: PC → All
Version: unspecified → 2.21
Comment 1•20 years ago
|
||
I guess you could patch this if you'd like...
Status: UNCONFIRMED → NEW
Component: User Interface → Bugzilla-General
Ever confirmed: true
Comment 2•20 years ago
|
||
(In reply to comment #0)
> behavior relies on type defaulting to "text", but that makes it very hard to
> make style sheets that affect text boxes only.
I could probably patch this if nobody else wants to. Unfortunately I don't get the reason for this change. What's the difference between defaulting to some type and specifically set a type? Isn't the end result still the same. IOW, isn't type "text" in both cases? How does this change make it easier to reference text input fields in CSS?
Component: Bugzilla-General → User Interface
![]() |
||
Updated•18 years ago
|
Assignee: myk → ui
![]() |
||
Comment 3•10 years ago
|
||
Use the :not pseudo-class. For instance:
input:not(type), input[type=text] { color: red }
See https://developer.mozilla.org/en-US/docs/Web/CSS/%3anot
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•