Some DOM javascript code works only in Firefox 2.0, not 1.5, why?

I have some code, using all the DOM documentation in the developer.mozilla.org website. For some reason it's only working in the newest Firefox 2 versions, and not 1.5.0.x

I'm having a hard time finding any documentation of what's not supported.

Can you guys help me? Here are the functions I'm calling:

getRangeAt();

range.collapsed

document.createElement("div");

range.cloneContents();

element.appendChild(clone);

document.getElementById("divid");

do you think it's createElement div? Maybe I can't create a div element?
[639 byte] By [koden] at [2007-11-20 5:52:14]
# 1 Re: Some DOM javascript code works only in Firefox 2.0, not 1.5, why?
Remember that with newer versions of any web browser, the developers make modifications and additions to the abilities of the browser. Many things that 2.0 can do 1.5 cannot. Use the Error Console in the Tools menu to debug.
PeejAvery at 2007-11-8 0:41:57 >
# 2 Re: Some DOM javascript code works only in Firefox 2.0, not 1.5, why?
Remember that with newer versions of any web browser, the developers make modifications and additions to the abilities of the browser. Many things that 2.0 can do 1.5 cannot. Use the Error Console in the Tools menu to debug.

yeah I looked through all the documentation, release notes and stuff, but couldn't find anything really pertaining.

in one case my friend who tried it said that instead of cloning the selection, the program copied it to the operating system's clipboard!? not a piece of code does that. This was in FF 1.5. So strange how different something acted in FF 2.

I will try the Error console

thanks!
koden at 2007-11-8 0:43:00 >
# 3 Re: Some DOM javascript code works only in Firefox 2.0, not 1.5, why?
Your friend is mistaken. Firefox does not have access to the clipboard.
PeejAvery at 2007-11-8 0:43:56 >
# 4 Re: Some DOM javascript code works only in Firefox 2.0, not 1.5, why?
Your friend is mistaken. Firefox does not have access to the clipboard.

yeah, super weird...
koden at 2007-11-8 0:44:56 >