Closed Bug 550710 Opened 14 years ago Closed 14 years ago

emptytext attribute broken

Categories

(Toolkit :: UI Widgets, defect)

defect
Not set
normal

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.
Thanks!

I just fixed this typo:

http://hg.mozilla.org/mozilla-central/rev/41dcb515943d
Blocks: 547224
Status: NEW → RESOLVED
Closed: 14 years ago
No longer depends on: 547224
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a3
Did we not have any tests break for this? Seems like we should...
All the tests have been migrated to "placeholder" in bug 547224...
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.