Open Bug 286136 Opened 20 years ago Updated 2 years ago

Unnecessary to forward properties to textbox's HTML inputField

Categories

(Core :: XUL, defect)

x86
Windows XP
defect

Tracking

()

People

(Reporter: aaronlev, Unassigned)

Details

Attachments

(1 file)

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.
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
The only property we should really need to forward is 'value', I would think...
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.widgets
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: