Closed Bug 31031 Opened 25 years ago Closed 24 years ago

function in linked script not defined on reload

Categories

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

x86
Linux
defect

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: dbaron, Assigned: vidur)

Details

I don't know what level of the code this problem is really at, but I'm filing it
against DOM Level 0.

DESCRIPTION:  A function defined in a linked JS file (base.js) in my DOM tests
is defined the first time the file is used in a session, but not after that
(although some things seem to clear things up so it works once more).  This
prevents the tests from working.

STEPS TO REPRODUCE:
 * load
http://www.people.fas.harvard.edu/~dbaron/dom/test/one-core-html/DOMImplementation
 * hit "Test DOMImplementation"
 * hit reload button
 * hit "Test DOMImplementation"

ACTUAL RESULTS:
 * the results are printed the first time, but the second time there's a JS
error instead:
  JavaScript Error: ReferenceError: canOutputWarn is not defined
URL:
http://www.people.fas.harvard.edu/~dbaron/dom/test/one-core-html/DOMImplementation
Line number: 14

EXPECTED RESULTS:
 * works repeatedly

DOES NOT WORK CORRECTLY ON:
 * Linux, mozilla, 2000-03-08-09-M15

ADDITIONAL INFORMATION:
I suspect this probably causes real problems somewhere...  If I have time, I'll
try to make a simplified testcase sometime.
May be a dup of bug 29370.
A workaround for bug 29370 was checked in.  Is this still happening? If not, we
can mark this a duplicate, probably.
worksforme on 2000050412 win98
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
Verified worksforme.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.