Closed Bug 280796 Opened 21 years ago Closed 21 years ago

Wrong JavaScript example for installing Firefox extension

Categories

(www.mozilla.org :: General, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bugzilla, Assigned: annevk)

References

()

Details

Attachments

(3 files, 2 obsolete files)

On the <http://www.mozilla.org/projects/firefox/extensions/web-api.html> is JavaScript code for installing extension. But there is a mistake. In the first color rectangle, there is: "<a href="http://www.foo.com/bar.xpi" iconURL="http://www.foo.com/bar.png" onclick="return install(this);">Install Extension!</a>" But onclick="return install(this)" will not work, probably only typo. You have to use onclick="return install(event);" as is in correct in the second color rectangle.
Attached patch patch #1 (obsolete) — — Splinter Review
This fixes that and some other nitpits.
Assignee: mozilla.webmaster → bug
Status: UNCONFIRMED → ASSIGNED
Attachment #173181 - Flags: review?(fantasai.bugs)
Attached patch patch #2 (obsolete) — — Splinter Review
Sorry about that.
Attachment #173181 - Attachment is obsolete: true
Attachment #173182 - Flags: review?(fantasai.bugs)
Attachment #173181 - Flags: review?(fantasai.bugs)
Comment on attachment 173182 [details] [diff] [review] patch #2 Anne, I strongly suspect the language of this document is 'en' not 'nl'. Also, since you are making a lot of whitespace-only changes, please attach a -w diff for review.
Attachment #173182 - Flags: review?(fantasai.bugs) → review-
Attached patch patch #3 — — Splinter Review
Argh, I have seen too much HTML today I guess. -w coming up.
Attachment #173182 - Attachment is obsolete: true
Attachment #173201 - Flags: review?(fantasai.bugs)
Attached patch patch #3 -w — — Splinter Review
script type should be text/javascript, isn't it?
Attachment #173201 - Flags: review?(fantasai.bugs) → review+
FIXED
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Product: mozilla.org → Websites
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: