Re: Can't use Firefox innerHTML() on XHTML page?
Martin Honnen <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Organization | Liberty Development |
| Message-ID | <[email protected]> |
Martin Honnen wrote: > It seems to be related to that URL, when I try that code with other > application/xhtml+xml documents I don't get any error. > I am however not sure what on that URL causes the problem. I think I now know what causes the problem. The has lots of JavaScript code that also sets innerHTML on several elements created and it looks as if Firefox 3.0, if someone tries to set innerHTML to a not well-formed snippet fails on subsequent attempts to set innerHTML, even if now the snippet is well-formed. And before you run your bookmarklet tht page creates and sets innerHTML to a mal-formed snippet and then later attempts to set innerHTML fail. I will test whether that happens too with a Firefox trunk nightly and if so file a bug. -- Martin Honnen http://msmvps.com/blogs/martin_honnen/