Re: <button> type attribute disappears

  •  08-09-2010, 11:33 AM

    Re: <button> type attribute disappears

    Hi,
     
    We tested this code, and found IE remove the type='button' automatically:
     
    function testit()
    {
     var editor=document.getElementById("<%=Editor1.ClientID%>");
     editor.GetDocument().body.innerHTML="<button type='button'>hello</button>";
     alert(editor.GetDocument().body.innerHTML);
    }
     
    I think that is a bug of IE, and we will think more to find a way to prevent it.
     
    Regards,
    Terry
View Complete Thread