Open
Bug 286136
Opened 20 years ago
Updated 2 years ago
Unnecessary to forward properties to textbox's HTML inputField
Categories
(Core :: XUL, defect)
Tracking
()
NEW
People
(Reporter: aaronlev, Unassigned)
Details
Attachments
(1 file)
|
3.21 KB,
application/vnd.mozilla.xul+xml
|
Details |
Spunoff from from 286079.
In both versions of textbox.xml, we're forwarding property changes to the HTML
inputField, even though the input field inherits those attributes.
We should not need to do things like the second line of this snippet:
<property name="readonly"
onset="this.inputField.readonly = val;
if (val) this.setAttribute('readonly', 'true');
else this.removeAttribute('readonly'); return val;"
At least for disabled and tabIndex, I've tested and shown that it is unnecessary
extra code.| Reporter | ||
Comment 1•20 years ago
|
||
This testcase still works when the code |this.inputField.tabIndex = val;| is removed from the tabIndex property setter.
Component: XP Miscellany → XP Toolkit/Widgets: XUL
QA Contact: brendan
Comment 2•20 years ago
|
||
The only property we should really need to forward is 'value', I would think...
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.widgets
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•