On 10/13/07, Jason Foss <[EMAIL PROTECTED]> wrote:
> Sorry if this is a bit of a newbie question, but what's the issue with
> innerHTML?

It's not an official W3C DOM method. When you fill the content of an
element with innerHTML, the browser will render it but as far as I can
remember, the content doesn't really exist properly within the DOM.
The proper DOM methods, such as append, remove, etc. do build up the
DOM properly.

In a way, it's kind of like <embed> vs. <object>.

Of course, if you really want to use innerHTML, you could probably go
right ahead. But if you are already using a very DOM-friendly
framework like jQuery, you may as well take advantage of the face that
it makes all the proper DOM methods very easy to use.

Christian Montoya

List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm

Reply via email to