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


Groups > comp.lang.javascript > #22414

Re: Javascript Help Needed

From Jim Rojas <jrojas@tech-man.com>
Newsgroups comp.lang.javascript
Subject Re: Javascript Help Needed
References <6h5uu.25363$gh2.7307@fx24.iad> <l9colr$do9$2@dont-email.me> <52b9f810$0$9502$9b4e6d93@newsspool1.arcor-online.net> <2691359.uFm2ZBFIHE@PointedEars.de> <1461294.7PQU9mpPJr@PointedEars.de>
Message-ID <Rl_uu.76099$2s6.74908@fx16.iad> (permalink)
Organization TeraNews.com
Date 2013-12-26 13:14 -0500

Show all headers | View raw


Thomas 'PointedEars' Lahn wrote:
> Thomas 'PointedEars' Lahn wrote:
>
>> Christoph Michael Becker wrote:
>>> Denis McMahon wrote:
>>>> use something like:
>>>>
>>>> blah.innerHTML += "<"+"/"+"B>";
>>>>
>>>> to avoid any sequence of '<' + '/' + letter occurring inside the script
>>>> tags, as these may confuse the rendering engine.
>>>
>>> A simpler and more efficient solution to comply with HTML parsers (which
>>> might consider </ as introducing a closing tag) is:
>>
>> The proper terms are _end tag_ and End Tag Open (ETAGO) delimiter,
>> respectively.  ETAGO in script code is only necessary to be escaped if the
>> code is in an HTML < 5 document.
>>
>> Nowadays the easiest and – for several reasons – recommended way to work
>> around this is to include a script resource.  In my experience, over time
>> inline script code soon grows too much so that it is moved to an included
>> script resource.  There are other potential advantages of the latter, such
>> as parallel loading and better editor support.  This application, being
>> small, and the script code limited to a single purpose, may be an
>> exception.
>>
>>>    blah.innerHTML += "<\/B>"
>>>
>> […]
>>> [1] <http://www.w3.org/TR/REC-html40/interact/scripts.html#h-18.2.1>
>>> [2] <http://www.w3.org/TR/html5/scripting-1.html#the-script-element>
>>
>> Read more carefully before you cite:
>>
>> <http://www.w3.org/TR/2012/CR-html5-20121217/syntax.html#syntax>
>> <http://www.w3.org/TR/2012/CR-html5-20121217/syntax.html#script-data-state>
>
> Latest – as cited:
>
> <http://www.w3.org/TR/2013/CR-html5-20130806/syntax.html#syntax>
> <http://www.w3.org/TR/2013/CR-html5-20130806/syntax.html#script-data-state>
>

Thank you all for all the help and comments. I hired a local programmer, 
and he rewrote the entire code in about 30 minutes.

Jim Rojas


---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com

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


Thread

Javascript Help Needed Jim Rojas <jrojas@tech-man.com> - 2013-12-23 20:17 -0500
  Re: Javascript Help Needed "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-12-24 09:17 +0100
    Re: Javascript Help Needed Jim Rojas <jrojas@tech-man.com> - 2013-12-24 10:01 -0500
      Re: Javascript Help Needed Jim Rojas <jrojas@tech-man.com> - 2013-12-24 10:02 -0500
      Re: Javascript Help Needed "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-12-24 18:11 +0100
        Re: Javascript Help Needed Jim Rojas <jrojas@tech-man.com> - 2013-12-24 12:24 -0500
          Re: Javascript Help Needed "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-12-24 19:03 +0100
          Re: Javascript Help Needed Denis McMahon <denismfmcmahon@gmail.com> - 2013-12-24 19:18 +0000
    Re: Javascript Help Needed Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-12-25 23:06 +0000
  Re: Javascript Help Needed Denis McMahon <denismfmcmahon@gmail.com> - 2013-12-24 19:52 +0000
    Re: Javascript Help Needed Jim Rojas <jrojas@tech-man.com> - 2013-12-24 15:02 -0500
      Re: Javascript Help Needed Christoph Michael Becker <cmbecker69@arcor.de> - 2013-12-24 22:07 +0100
      Re: Javascript Help Needed Denis McMahon <denismfmcmahon@gmail.com> - 2013-12-25 02:16 +0000
        Re: Javascript Help Needed Jim Rojas <jrojas@tech-man.com> - 2013-12-24 21:48 -0500
      Re: Javascript Help Needed Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-12-25 23:05 +0000
    Re: Javascript Help Needed Christoph Michael Becker <cmbecker69@arcor.de> - 2013-12-24 22:09 +0100
      Re: Javascript Help Needed Denis McMahon <denismfmcmahon@gmail.com> - 2013-12-25 01:51 +0000
      Re: Javascript Help Needed Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-12-26 07:38 +0100
        Re: Javascript Help Needed Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-12-26 10:42 +0100
          Re: Javascript Help Needed Jim Rojas <jrojas@tech-man.com> - 2013-12-26 13:14 -0500
        Re: Javascript Help Needed Christoph Michael Becker <cmbecker69@arcor.de> - 2013-12-27 22:49 +0100
          Re: Javascript Help Needed Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-12-27 23:25 +0100

csiph-web