Make generic case nodes insertion; fix IE behaviour