Hi,

Perhaps bootstrap your GWT environment, then load your xhtml doc via
RequestBuilder()?

On Sat, May 16, 2009 at 5:45 PM, Ductape <[email protected]> wrote:
>
> I am trying to use GWT to code a small application that uses MathML.
> this requires an xhtml document for firefox to parse MathML natively.
> The problem is, when I try to run my nocache.js script in an xml based
> document, it chokes up in two locations, both on $doc.write().
> here:
>
>  // Determine our own script's URL via magic :)
> [...]
>    // Our script element is assumed to be the closest previous script
> element
>    // to the marker, so start at the marker and walk backwards until
> we find
>    // a script.
>    thisScript = markerScript && markerScript.previousSibling;
>    while (thisScript && thisScript.tagName != 'SCRIPT') {
>      thisScript = thisScript.previousSibling;
>   }
> [...]
>
> and here:
>  // The 'defer' attribute here is a workaround for strange IE
> behavior where
>  // <script> tags that are doc.writ()en execute *immediately*, rather
> than
>  // in document-order, as they should. It has no effect on other
> browsers.
>  $doc.write('<script defer="defer">__MODULE_FUNC__.onInjectionDone
> (\'__MODULE_NAME__\')</script>');
>
> These both look like tricky workarounds for javascript limitations,
> and quite frankly they terrify me. So I am wondering,
> 1. Is there a good way to rewrite these parts with appendChild, or
> some other JavaScript voodoo?
> 2. Are there going to be a million other landmines like this in other
> parts of the code?
>
> I am also curious if there is any reason these scripts aren't xhtml
> compatible out of the box. Keep in mind I have no comprehension of the
> origin, or the troubled history behind these standards.
>
> Thanks in advance.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to