Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #18223
| Message-ID | <3518786.s3mz5jZoqN@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2013-01-23 16:24 +0100 |
| Subject | Re: Firefox update caused a syntax error in a script |
| Newsgroups | comp.lang.javascript |
| References | <08qvf8pmep9fg9v2mdhclh96h097t7a7vs@4ax.com> |
| Followup-To | comp.lang.javascript |
Followups directed to: comp.lang.javascript
Dave Farrance wrote: > The "Greased Webcomic Manager" is a "greasemonkey" script that broke with > the update of Firefox from 16.0.2 to 17.0. Firefox's "error console" now > shows a syntax error on line 1061. i.e.: > > TN.gwm.css = <><![CDATA[ > > which is just past the halfway mark down this script file: > > http://userscripts.org/scripts/review/74760 > > That's beyond my limited understanding of Javascript, That much is obvious, because there is no “Javascript”. <http://PointedEars.de/es-matrix> > so could anybody tell me why the syntax is bad? I'm asking because a > reviewer noted that the script had broken seven weeks back but the > developer hasn't appeared yet, so I'm hoping that a simple patch will fix > it. The right-hand side (RHS) is part of ECMAScript for XML (E4X, ECMA-357), which allows you to use XML markup verbatim in ECMAScript-based scripts, resulting in an XML object (XML instance). The first line of the RHS is the start-tag of an anonymous element followed by the left-hand side delimiter of a CDATA section. <http://www.w3.org/TR/2008/REC-xml-20081126/#sec-cdata-sect> Unfortunately, E4X never had cross-implementation (and thus cross-browser) support, and support has been disabled in (Mozilla) JavaScript for non- privileged code (such as GreaseMonkey scripts) in Firefox 17. The feature is going to be removed from the codebase in Firefox 20: <https://developer.mozilla.org/en-US/docs/E4X> Your From header field value is invalid; please fix. -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Firefox update caused a syntax error in a script Dave Farrance <DaveFarrance@OMiTTHiSyahooANDTHiS.co.uk> - 2013-01-23 14:01 +0000
Re: Firefox update caused a syntax error in a script Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-01-23 16:24 +0100
Re: Firefox update caused a syntax error in a script Dave Farrance <DaveFarrance@OMiTTHiSyahooANDTHiS.co.uk> - 2013-01-23 17:28 +0000
Re: Firefox update caused a syntax error in a script Danny <dann90038@gmail.com> - 2013-01-23 12:33 -0800
csiph-web