Closed
Bug 550710
Opened 15 years ago
Closed 15 years ago
emptytext attribute broken
Categories
(Toolkit :: UI Widgets, defect)
Toolkit
UI Widgets
Tracking
()
RESOLVED
FIXED
mozilla1.9.3a3
People
(Reporter: davemgarrett, Unassigned)
References
Details
(Keywords: regression)
The emptytext attribute doesn't work in latest Trunk. Error console gives:
Error: uncaught exception: [Exception... "Not enough arguments" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: chrome://global/content/bindings/textbox.xml :: :: line 160" data: no]
Just taking a quick look at the patch in bug 547224 I see:
159 if (this.hasAttribute("emptytext"))
160 this.placeholder = this.setAttribute("emptytext");
Should be getAttribute not setAttribute.
Comment 1•15 years ago
|
||
Thanks!
I just fixed this typo:
http://hg.mozilla.org/mozilla-central/rev/41dcb515943d
Comment 2•15 years ago
|
||
Did we not have any tests break for this? Seems like we should...
Comment 3•15 years ago
|
||
All the tests have been migrated to "placeholder" in bug 547224...
Comment 4•15 years ago
|
||
We should either leave one using emptytext="", or make copies of some of the tests to test the other attribute.
You need to log in
before you can comment on or make changes to this bug.
Description
•