I'm having problems with the dynamic creation of div elements within the X Library.
Mike Foster proposed a helpful support for NN4 with the xCreateElement() function. But when creating elements in IE 4.0 or Opera, no element is returned.
I think I have found the reason :
To resume : the only new elements that can be created are img, are and options.
I wrote this but don't know how to fix it.
function xCreateElement(sTag)
  var ele=null;
  if (document.createElement) {
    //test if DIV creation is possible
    if (document.createElement('DIV')) ele = document.createElement(sTag);
    else alert ('no DIV creation possible');  // may happen in IE4.0, Mozilla ?
  else if (xNN4) ele = new Object();
  return ele;
Any idea ?