Em Sábado 22 Abril 2006 06:10, Michele Cella escreveu:

> Yes, innerHTML is non-standard but supported by everyone at this point.

But not for all elements.  It works for some of them.  It didn't work, for 
example, for an image in (guess where?) IE.  So I believe it is save for 
paragraphs, divs and a few other tags, but you'd have to check if what you 
want works where you need.

> Problem is when you serve with content-type application/xhtml+xml,
> innerHTML will not work, but IIRC firefox 1.5 supports it even in this
> case.

It works for FF.

> > But the other horn of the dilemma is that innerHTML appears to be
> > faster than DOM node-appending methods:
> > http://www.quirksmode.org/index.html?/dom/innerhtml.html
>
> Yep, I've had already seen this, thanks for the link (that I had lost)
> to this excellent site.

The difference is remarkable. Too bad that there's this problem to know where 
innerHTML works or not... :-(

-- 
Jorge Godoy      <[EMAIL PROTECTED]>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to