parent var breaks firebug

0 views
Skip to first unread message

mike

unread,
Jan 22, 2007, 5:24:47 PM1/22/07
to Firebug
It seems that naming any old variable parent (which is allowed in
firefox) breaks firebug on refresh after the code has been run.
The following code, placed in the head tag:

parent = 'hello';
document.write(parent);
console.log(parent);


runs properly the first time the page is loaded, on refresh the code
runs properly again (hello is written to the document), however a
"console is not defined" error is thrown and inspecting in firebug is
disabled. Continuing to causes the same error, but the console is not
cleared between refreshes.

Other than this, I love the FB1.0 betas, thanks for a fantastic tool!
Mike

Haven

unread,
Feb 1, 2007, 10:50:59 AM2/1/07
to Firebug
Just writing to confirm this bug. The variable 'parent' needs to
exist in the global scope for it to be an issue.

On Jan 22, 5:24 pm, "mike" <mike.oto...@gmail.com> wrote:
> It seems that naming any old variable parent (which is allowed in
> firefox) breaks firebug on refresh after the code has been run.
> The following code, placed in the head tag:
>
> parent = 'hello';
> document.write(parent);console.log(parent);
>
> runs properly the first time the page is loaded, on refresh the code
> runs properly again (hello is written to the document), however a

> "consoleisnotdefined" error is thrown and inspecting in firebug is

Reply all
Reply to author
Forward
0 new messages