The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

cannot create DIV elements in IE4 (problems in X)

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 :http://msdn.microsoft.com/workshop/a...ateelement.asp
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.

I don't think this: "else alert ('no DIV creation possible');" should be in the library code. You should check the return value in your application code. This is the conventional approach. If xCreateElement or xAppendChild return null, then your app should gracefully downgrade. They will properly return null in IE4 and Opera6.