Solve this by using pure DOM methods instead. In IE9 and lower innerHTML refuses to work on tables and selects.IE8 returns UPPER CASE tags, even though the source is lower case.IE8 can’t write the innerHTML of a tag.If you want to remove nodes that you may want to reinsert at a later time, use DOM methods such as removeChild(). If you remove elements through innerHTML in IE, their content is wiped and only the element itself (i.e. The order of the attributes on the HTML element may be off in IE.If you change the innerHTML of a script tag the browser doesn’t recognize the new script and you can’t execute it.Originally a Microsoft extension, innerHTML is so useful that all other browsers support it, too. The HTML contained by a tag, as a string.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |