The following code:

Ext.onReady(function(){
var newPanel = new Ext.panel.Panel();
newPanel.dom = Ext.core.DomHelper.createDom(newPanel);
});


Produces an error: String contains an invalid character" code: "5 in Firefox, Chrome, and IE. How does one create a DOM element for a panel without displaying it?