Creating and inserting a command button before defining its type fails in Internet Explorer 7 and Internet Explorer 8

Steps to reproduce: click the 2nd button, the "before" button.

 

 

References:

DOM 2 Core createElement() method
MSDN on createElement() method

Firefox 1.5, Firefox 2, Firefox 3, Opera 9.27, Opera 9.51, Safari 3.1.2, Safari 4.0, Konqueror 4.1, Seamonkey 1.x, Seamonkey 2.x, NS 7.2, K-meleon 1.x, Galeon 2.0.4, Epiphany 2.22 all pass this test.

Valid HTML 4.01!