Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #26414

Re: simple error

From "Christoph M. Becker" <cmbecker69@arcor.de>
Newsgroups comp.lang.javascript
Subject Re: simple error
Date 2014-12-29 12:36 +0100
Organization solani.org
Message-ID <m7rec6$fsf$1@solani.org> (permalink)
References (3 earlier) <m7pp88$4kg$1@dont-email.me> <1745799.hd9xs91tD1@PointedEars.de> <m7ptu8$mbq$1@dont-email.me> <m7pv4a$72s$1@solani.org> <m7qrql$3no$1@dont-email.me>

Show all headers | View raw


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
>>>
>>> <td onclick='this.innerHTML = `X`;'>--</td>
>>>
>>> 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] <http://www.ecma-international.org/ecma-262/5.1/#sec-2>

-- 
Christoph M. Becker

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

simple error Haris Bogdanovich <haris.bogdanovic@gmail.com> - 2014-12-28 18:12 +0100
  Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-28 18:25 +0100
    Re: simple error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-12-28 21:00 +0200
      Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-28 21:32 +0100
        Re: simple error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-12-28 23:56 +0200
  Re: simple error Denis McMahon <denismfmcmahon@gmail.com> - 2014-12-28 18:46 +0000
    Re: simple error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-12-28 21:13 +0200
      Re: simple error Denis McMahon <denismfmcmahon@gmail.com> - 2014-12-28 23:19 +0000
        Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-29 01:03 +0100
        Re: simple error "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-12-29 01:08 +0100
    Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-28 20:13 +0100
      Re: simple error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-12-28 22:30 +0200
        Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-28 21:44 +0100
          Re: simple error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-12-28 23:50 +0200
            Re: simple error "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-12-28 23:10 +0100
              Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-29 03:10 +0100
                Re: simple error "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-12-29 13:17 +0100
                Re: simple error Tim Streater <timstreater@greenbee.net> - 2014-12-29 12:30 +0000
                Re: simple error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-12-29 14:49 +0200
                Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-29 15:18 +0100
              Re: simple error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-12-29 08:20 +0200
                Re: simple error "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-12-29 12:36 +0100
                Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-29 15:40 +0100
            Re: simple error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-29 01:04 +0100
              Re: simple error "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-12-29 08:09 +0200

csiph-web