Firebug Console Stopped Working and I Fixed It

Somewhere along my way, I lost my ability to use Firebug console, specifically, I could not use console.log(). Worse, I could not examine variables and DOM elements from the console. It would echo the thing I typed but not the result. For example, if I typed "5+5" into the console, the result should look like:

     

While broken, it only showed the ">>> 5+%".

I tracked it down to a jquery statement:

     $('body').html("<div id='container'></div>");

When I changed it to:

     $('body').append("<div id='expressbook'></div>");

It worked correctly.

Someone please explain.
2 responses
First thing that came to my mind is that 'container' is a keyword in jquery that's being treated funny.
Now that I look at it again, the $('body').html() call is overwriting the entire 'body' element of the DOM with your whatever. And your console object is tied to the 'body' element you just overwrote.
1 visitor upvoted this post.