|
[JavaScript][IE] <tbody>.innerHTML |
bamccaig
Member #7,536
July 2006
|
Does anybody know why IE errors (Unknown runtime error) when trying to set or append to the innerHTML property of a <tbody> DOM object. Is it possible to do or will I just have to stop using <thead>, <tbody>, and <tfoot> tags? (I know innerHTML is a hack, but it's fast and easy and I've been instructed to use it ). -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
Matthew Leverton
Supreme Loser
January 1999
|
IE doesn't support it. Every other browser does. |
Jonny Cook
Member #4,055
November 2003
|
innerHTML is a hack? That's the first I've heard of that. In fact, I've heard that it's better than manually manipulating the DOM because the DOM methods are slow. Although I usually just use the DOM methods because they are fun. The face of a child can say it all, especially the mouth part of the face. |
bamccaig
Member #7,536
July 2006
|
Jonny Cook said: innerHTML is a hack? That's the first I've heard of that. In fact, I've heard that it's better than manually manipulating the DOM because the DOM methods are slow. Although I usually just use the DOM methods because they are fun. There is no standard for it that I'm aware of. It is a proprietary extension implemented in IE that was adopted by other browsers for compatibility. -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
Matthew Leverton
Supreme Loser
January 1999
|
Note that you could do something like: It contains much pseudocode obviously. But I would just let IE fail a miserable death. |
bamccaig
Member #7,536
July 2006
|
Screw it... I already had this code working with DOM and I'm not about to hack it up to work with innerHTML... Thanks for the fast response. -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
Jonny Cook
Member #4,055
November 2003
|
Quote: There is no standard for it that I'm aware of. It is a proprietary extension implemented in IE that was adopted by other browsers for compatibility. Hmm... yeah I heard that too. I guess that makes it a hack. Well, until IE incudes textContent I don't really have any choice but to use it... Quote: But I would just let IE fail a miserable death. I'm all for that... but it's probably not the smartest thing to shut out 90% percent of your audience. Well, now it's probably more like 60%. The face of a child can say it all, especially the mouth part of the face. |
|