On Nov 7, 12:55 am, RobG <[EMAIL PROTECTED]> wrote:
> On Nov 6, 5:42 pm, Alex MacCaw <[EMAIL PROTECTED]> wrote:
>
> > I'm encountering quite a weird problem withSafari2.0.4 - 'new
> > Element' doesn't work at all, *unless* you change the file extension
> > of the document you're loading from xhtml to html.
>
> It seems thatSafariuses the file extension rather than the DOCTYPE
> declaration.  If you serve your file toSafarias XHTML, I suspect you
> will get the same result.
>
> Safaridoes not appear to support the (non-standard) innerHTML
> property for dynamically created elements in XML documents.

To use innerHTML with an XHTML document in Safari, you must use:

  document.createElementNS('http://www.w3.org/1999/xhtml', tagName);


Further details and discussion are here:

<URL: 
http://groups.google.com.au/group/comp.lang.javascript/browse_frm/thread/60c993dcbcd65b72/be77261c4bc3fb92?hl=en#be77261c4bc3fb92
>


--
Rob


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to