Closed Bug 106224 Opened 24 years ago Closed 24 years ago

Fix for strict JS warning in editor.js

Categories

(SeaMonkey :: Composer, defect)

x86
Windows 95
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: neil, Assigned: cmanske)

References

()

Details

Attachments

(1 file)

Steps to reproduce problem: 1. Turn on strict JS warnings 2. Start Editor 3. Switch to HTML Source view 4. Make two edits Actual results: Warning: useless expression editor.js uses setAttribute("oninput", null) to "remove" the event handler. Unfortunately this just replaces the event handler with a null event handler. When this new event handler is compiled a strict JS warning results.
Attached patch Propsed patchSplinter Review
Keywords: patch, review
this is actually a dupe og bug 102504. But I dont care. As long as it's fixed...
*** Bug 102504 has been marked as a duplicate of this bug. ***
Comment on attachment 54666 [details] [diff] [review] Propsed patch r=cmanske
Attachment #54666 - Flags: review+
Attachment #54666 - Flags: superreview+
Assignee: syd → cmanske
Taking bug - I'll check it in.
Whiteboard: FIX IN HAND, reviewed
checked in.
Status: NEW → RESOLVED
Closed: 24 years ago
Keywords: patch, review
Resolution: --- → FIXED
Whiteboard: FIX IN HAND, reviewed
Neil, can you verify this is fixed? please mark verified-fixed..thanks.
Yes, thanks for reminding me.
Status: RESOLVED → VERIFIED
This is really jst's fault, for compiling an empty string. For shame!
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: