JavaScript things that don't work

IE6 hasLayout (bug?)

Got from http://www.satzansatz.de/cssd/onhavinglayout.html.

workarounds

firefoxIE6
element.setAttribute("class","whatever"); element['className'] = "whatever");
element.name = "daname"; (may need) element.id = "daname";
window.getSelection().toString()
OR
document.getSelection()
document.selection.createRange().text
childNodes[] children[] (IE4 - does not have text node type, does not consider strings of text to be children
getElementById()
getElementsByTagName()
(IE4)
all[]
all[0]
all["elementname"]
all["elementid"]
fixed (css) positioning (doesn't work in IE6)
absolute positioning in IE4 suggested you use
<div style="position: static;">
    
OR
<span style="position: static;"> as container and something like <div style="position: absolute;"> for the element
named links
document.links.yahoolink //doesn't work in IE6

//USE getElementById instead
dalink = document.getElementById("dalinkid");
document.write(dalink.innerHTML + " - ");