Is there really no way to expose the prototype of a html element in IE (<8)?

前端 未结 3 2043
刺人心
刺人心 2020-11-30 14:01

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

3条回答
  •  天命终不由人
    2020-11-30 14:54

    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

提交回复
热议问题