On Apr 20, 2:09 pm, John Resig <jere...@gmail.com> wrote:

> > 2. JQuery blows up on certain xhtml+xml pages as it uses innerHTML().
> > Actually, this turned out to be a bug in Firebox. However, jQuery's
> > use of the the non-standard innerHTML(), rather than createElement()/
> > appendChild() has made me question whether jQuery will work on all
> > browser/web-page combinations. Then again, innerHTML should become
> > standard in HTML 5.
>
> innerHTML will only "blow up" if malformed or incorrect HTML is
> injected into an XHTML+XML page - which is exactly as you would expect
> it to (since you're working in a highly-strict environment, receiving
> error messages is part of the process).

One problem when using application/xhtml+xml is that Javascript
functions like document.write() and Element.innerHtml may disrupt the
XML validity of the document. So the behaviour for most browsers (last
time I checked was with Firefox 2 and Opera 7.5 I think) is either to
disable this functions on an application/xhtml+xml page or make it
switch back to text/html before executing the function.

IE of course is out of the application/xhtml+xml debate since it does
not support this MIME type.

Hope this helps to clarify.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to