Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.javascript Subject: Re: simple error Date: Mon, 29 Dec 2014 12:36:40 +0100 Organization: solani.org Lines: 39 Message-ID: References: <2919102.Zlc1T3vdmV@PointedEars.de> <1745799.hd9xs91tD1@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: solani.org 1419852998 16271 eJwFwYERAEEEA8CW/JHQTjD6L+F34fw4GQQDhzNL5ZS7rtGzV1qYrZHwftORK+ihyqiNHyVSEUs= (29 Dec 2014 11:36:38 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Mon, 29 Dec 2014 11:36:38 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 X-User-ID: eJwNwoERACEIA7CVQNqi47yC+4/gX8KQ6yREgfenNSuEifKbWwOZY/nh17Dy2LiikWw0q+0BAJsQTg== In-Reply-To: Cancel-Lock: sha1:xe7ShRXs5U/rOUivpVS/AeITbmw= X-NNTP-Posting-Host: eJwNycEBwCAIA8CVREiQcRBh/xHa+x6UwnIjaBhMPHWFzVL66QZaHEGptqydeQ8Q63bxD93vAw33EN0= Xref: csiph.com comp.lang.javascript:26414 Jukka K. Korpela wrote: > 2014-12-29, 0:10, Christoph M. Becker wrote: > >> Jukka K. Korpela wrote: >> >>> The issue was the use of the code >>> >>> -- >>> >>> which was stated to work in Firefox. >>> >>> There is no HTML error in that code. The error is in JavaScript code. >> >> Obviously, not. Otherwise it wouldn't work in Firefox' JavaScript >> engine as if the backticks have been quotes. > > So are you saying that there is no error in code? And that if something > works in an implementation it’s not an error? > > Some future extension to the language might make it valid, and might get > implemented, but that’s a different story. It seems to be prudent to avoid talking about "the language" here. Even talking about JavaScript is misleading in this case, obviously. Talking about ECMAScript (implementations) clarifies things considerably, because then we can look up the relevant part of the current specification[1] (instead of speculating): | A conforming implementation of ECMAScript is permitted to support | program and regular expression syntax not described in this | specification. So the code above is not in error. [1] -- Christoph M. Becker