Firefox no longer supports E4X.  So you can no longer embed XML directly in
javascript.

https://developer.mozilla.org/en-US/docs/E4X


On Sun, Apr 7, 2013 at 9:24 AM, GAUTHIER Pascal <[email protected]>wrote:

> Bonjour,
>
> Jusqu'à la version 16.0 de Firefox, mon script Greasmonkey fonctionnait
> très bien. Depuis le code ci-dessous génère une erreur de syntaxe au niveau
> du CDATA :
>
>     objStyles = document.createElement('style');
>     with(objStyles) {
>         type      = 'text/css';
>         innerHTML = <><![CDATA[
>             BODY {
>                 background-color: #223354;
>             }
>         ]]></>.toXMLString();
>
> Je ne sais pas pourquoi ce bout de code de fonctionne plus.
>
> Merci de votre aide.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "greasemonkey-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at
> http://groups.google.com/group/greasemonkey-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to