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


Groups > comp.lang.javascript > #12319

Re: Transposing single and double quotes.

Newsgroups comp.lang.javascript
Subject Re: Transposing single and double quotes.
From "Evertjan." <exjxw.hannivoort@interxnl.net>
References (1 earlier) <h3rsk7peqfvchuii4vnit5vd30ecjmnbo7@4ax.com> <4f4e724b$1@news.broadpark.no> <1404347.V9SEqChMir@PointedEars.de> <XnsA008EEBB54D5Aeejj99@194.109.133.133> <jin2qq$ms8$1@dont-email.me>
Message-ID <XnsA0095AA00AB33eejj99@194.109.133.133> (permalink)
Date 2012-03-01 07:54 +0000

Show all headers | View raw


Jukka K. Korpela wrote on 01 mrt 2012 in comp.lang.javascript:

> 2012-03-01 0:28, Evertjan. wrote:
> 
>> Thomas 'PointedEars' Lahn wrote
> 
> Please don’t feed the troll. As you will most probably see, the troll 
> will bite you, whether your comments are correct or (as here) not.

This NG is not about being bitten, but about Javascript, which existence 
is not even recognized by Thomas.
 
>>>    onclick="window.alert('Please don\'t click the &quot;Click&quot;
>>>    button again')"
>>
>> Incorrect.
>>
>> alert() does not render string-content as html does,
> 
> Of course HTML parsing rules don’t apply when alert() processes its 
> argument. 

Perhaps "of cource" to you, but this is a repeating error made by me and 
many others, while we do know better.

And not "of cource", since it would be much nicer if html-parsing of the 
alert() string was done.

> They do apply when an HTML document containing the above 
> attribute specification is processed.

That is not the part I was commenting on.

>> &quot; is not translated.
> 
> It is “translated” (recognized as an entity reference) when the 
> attribute value is processed by an HTML user agent.

Quot non in casu.

>> [chrome and ie9 tested]
> 
> Not with the code under discussion.

This is the code under discussion in my posting:

>>>    onclick="window.alert('Please don\'t click the &quot;Click&quot;
>>>    button again')"

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

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


Thread

Transposing single and double quotes. Swifty <steve.j.swift@gmail.com> - 2012-02-29 15:04 +0000
  Re: Transposing single and double quotes. "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-02-29 17:27 +0200
    Re: Transposing single and double quotes. Swifty <steve.j.swift@gmail.com> - 2012-02-29 18:17 +0000
  Re: Transposing single and double quotes. Scott Sauyet <scott.sauyet@gmail.com> - 2012-02-29 07:28 -0800
  Re: Transposing single and double quotes. Jake Jarvis <pig_in_shoes@yahoo.com> - 2012-02-29 16:39 +0100
  Re: Transposing single and double quotes. Swifty <steve.j.swift@gmail.com> - 2012-02-29 18:27 +0000
    Re: Transposing single and double quotes. Swifty <steve.j.swift@gmail.com> - 2012-02-29 18:38 +0000
    Re: Transposing single and double quotes. KR <kristian.rasmussen@broadpark.no.spam.com> - 2012-02-29 19:45 +0100
      Re: Transposing single and double quotes. Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-02-29 19:59 +0100
        Re: Transposing single and double quotes. "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-02-29 22:28 +0000
          Re: Transposing single and double quotes. "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-03-01 07:52 +0200
            Re: Transposing single and double quotes. "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-03-01 07:54 +0000
              Re: Transposing single and double quotes. "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-03-01 10:18 +0200
                Re: Transposing single and double quotes. "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-03-01 15:21 +0000
                Re: Transposing single and double quotes. "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-03-01 18:07 +0200
              Re: Transposing single and double quotes. Erwin Moller <erwinmollerusenet@xs4all.nl> - 2012-03-01 10:30 +0100
                Re: Transposing single and double quotes. "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-03-01 15:29 +0000
                Re: Transposing single and double quotes. Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-03-01 22:10 +0100
                Re: Transposing single and double quotes. Erwin Moller <erwinmollerusenet@xs4all.nl> - 2012-03-02 11:02 +0100
                Re: Transposing single and double quotes. Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-03-02 13:17 +0100
                Re: Transposing single and double quotes. Erwin Moller <erwinmollerusenet@xs4all.nl> - 2012-03-05 10:09 +0100
                Re: Transposing single and double quotes. John G Harris <john@nospam.demon.co.uk> - 2012-03-02 16:27 +0000
              Re: Transposing single and double quotes. Dr J R Stockton <reply1209@merlyn.demon.co.uk> - 2012-03-02 22:05 +0000
                Re: Transposing single and double quotes. "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-03-03 08:35 +0000
    Re: Transposing single and double quotes. "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-02-29 20:47 +0200
      Re: Transposing single and double quotes. Swifty <steve.j.swift@gmail.com> - 2012-03-01 07:19 +0000
    Re: Transposing single and double quotes. Gene Wirchenko <genew@ocis.net> - 2012-02-29 14:18 -0800
  Re: Transposing single and double quotes. Dr J R Stockton <reply1209@merlyn.demon.co.uk> - 2012-03-01 21:55 +0000

csiph-web