If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

textbox.type returns the field's type rather than the type attribute

RESOLVED FIXED

Status

()

Toolkit
XUL Widgets
RESOLVED FIXED
11 years ago
11 years ago

People

(Reporter: Neil Deakin, Assigned: Neil Deakin)

Tracking

unspecified
x86
Mac OS X
Points:
---
Bug Flags:
in-testsuite ?

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

(Assignee)

Description

11 years ago
Currently textbox.type returns the type property from the textbox's inputField. This means that the type doesn't have a value for autocomplete or number textboxes. i think it should instead just return the type attribute.

Maybe something is depending on this behaviour?
Flags: in-testsuite?
(Assignee)

Comment 1

11 years ago
Created attachment 252092 [details] [diff] [review]
use type attribute
Attachment #252092 - Flags: first-review?(neil)

Comment 2

11 years ago
Comment on attachment 252092 [details] [diff] [review]
use type attribute

Should we remove the attribute if there is no type?
Attachment #252092 - Flags: first-review?(neil) → first-review+
(Assignee)

Comment 3

11 years ago
Created attachment 252340 [details] [diff] [review]
remove attribute when set to null string
Attachment #252092 - Attachment is obsolete: true
Attachment #252340 - Flags: first-review?(neil)

Updated

11 years ago
Attachment #252340 - Flags: first-review?(neil) → first-review+
(Assignee)

Updated

11 years ago
Status: NEW → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → FIXED

Comment 4

11 years ago
Could you attach the test for this to the bug? thanks.
You need to log in before you can comment on or make changes to this bug.