I cooked up a pattern to create and extend html elements using their prototype. This works like a charm in non-ie browsers. Example code can be found @jsbin (see page source
The following, cut and pasted from the article HTMLElement doesnt work in IE. Examples works perfectly in IE and Firefox.
hi there
Try it Regards