Closed Bug 380538 Opened 18 years ago Closed 18 years ago

<body ononline="..." onoffline="..."> doesn't work

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: asqueella, Assigned: cajbir)

References

Details

(Keywords: testcase)

Attachments

(2 files)

Attached file testcase
See the testcase. When you specify both attribute handlers in an HTML document, one of them doesn't get called. I think I saw a similar problem with <xul:window ononline=... onoffline=...>
(The testcase needs to be opened locally, as it requests enhanced privileges.)
This is responsible for some of todo()s in bug 336682 mochitests.
Flags: in-testsuite?
Flags: blocking1.9?
Dave: Can you have a look at this and figure out if it's an online/offline problem, or an events problem.
Assignee: general → dcamp
Flags: blocking1.9? → blocking1.9+
Assignee: dcamp → chris.double
Fixes the problem where if both an ononline and onoffline attribute was used in <body.../> then only the last one in the order that they appeared would work.
Attachment #264962 - Flags: superreview?(jonas)
Attachment #264962 - Flags: review?(jonas)
Comment on attachment 264962 [details] [diff] [review] Patch to fix issue when defining both offline and online handles in the body element So this is a regression from Bug 366478, right?
Attachment #264962 - Flags: review?(jonas) → review+
Attachment #264962 - Flags: superreview?(jonas) → superreview+
No, it was caused by the online/offline additions to it not being complete.
checked in.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: