<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <meta charset="utf-8">
    <span style="color: rgb(0, 0, 0); font-family: monospace; font-size:
      medium; font-style: normal; font-variant: normal; font-weight:
      normal; letter-spacing: normal; line-height: normal; orphans: 2;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: pre-wrap; widows: 2; word-spacing: 0px;
      -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
      display: inline !important; float: none; "><br>
      Changes to the AL-Rendering package allow for escape characters in
      tag attributes. The changes in ALHtml5Tag&gt;&gt;writeOpenInto: to
      produce that change (with the use of XTHtmlEntityWriteStream) but
      cause the AjaxCounterExample to stop working. The double quotes,
      ", become &amp;quot; and JavaScript becomes incomprehensible to
      the browser. <br>
      <br>
      It looks like the following with ViewSource in a browser with the
      old package, the new package, and a simple solution. <br>
      <br>
      <br>
      AjaxCounterExample&gt;&gt;renderScriptsOn: with older Render
      package: </span><br>
    <span style="color: rgb(0, 0, 0); font-family: monospace; font-size:
      medium; font-style: normal; font-variant: normal; font-weight:
      normal; letter-spacing: normal; line-height: normal; orphans: 2;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: pre-wrap; widows: 2; word-spacing: 0px;
      -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
      display: inline !important; float: none; "><br>
    </span>
    <meta charset="utf-8">
    <span style="color: rgb(0, 0, 0); font-family: monospace; font-size:
      medium; font-style: normal; font-variant: normal; font-weight:
      normal; letter-spacing: normal; line-height: normal; orphans: 2;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: pre-wrap; widows: 2; word-spacing: 0px;
      -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
      display: inline !important; float: none; ">new
      Counter("/76S.tbklwPZckEDg94Zqgn7tB.-"); counter.install("#count",
      "#dec", "#inc");</span><br>
    <span style="color: rgb(0, 0, 0); font-family: monospace; font-size:
      medium; font-style: normal; font-variant: normal; font-weight:
      normal; letter-spacing: normal; line-height: normal; orphans: 2;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: pre-wrap; widows: 2; word-spacing: 0px;
      -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
      display: inline !important; float: none; "><br>
      <br>
    </span><span style="color: rgb(0, 0, 0); font-family: monospace;
      font-size: medium; font-style: normal; font-variant: normal;
      font-weight: normal; letter-spacing: normal; line-height: normal;
      orphans: 2; text-align: start; text-indent: 0px; text-transform:
      none; white-space: pre-wrap; widows: 2; word-spacing: 0px;
      -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
      display: inline !important; float: none; ">AjaxCounterExample&gt;&gt;renderScriptsOn:
      with latest changer to Render package: <br>
      <br>
    </span>
    <meta charset="utf-8">
    <span class="webkit-html-tag" style="font-family: monospace;
      font-size: medium; font-style: normal; font-variant: normal;
      font-weight: normal; letter-spacing: normal; line-height: normal;
      orphans: 2; text-align: start; text-indent: 0px; text-transform:
      none; white-space: pre-wrap; widows: 2; word-spacing: 0px;
      -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">n</span><span
      style="color: rgb(0, 0, 0); font-family: monospace; font-size:
      medium; font-style: normal; font-variant: normal; font-weight:
      normal; letter-spacing: normal; line-height: normal; orphans: 2;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: pre-wrap; widows: 2; word-spacing: 0px;
      -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
      display: inline !important; float: none; ">ew
      Counter(&amp;quot;"&amp;quot;"&amp;quot;/76S.tbklwPZckEDg94Zqgn7tB.-&amp;quot;"&amp;quot;"&amp;quot;);
      counter.install(&amp;quot;#count&amp;quot;,
      &amp;quot;#dec&amp;quot;, &amp;quot;#inc&amp;quot;);</span><br>
    <span style="color: rgb(0, 0, 0); font-family: monospace; font-size:
      medium; font-style: normal; font-variant: normal; font-weight:
      normal; letter-spacing: normal; line-height: normal; orphans: 2;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: pre-wrap; widows: 2; word-spacing: 0px;
      -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
      display: inline !important; float: none; "><br>
    </span><span style="color: rgb(0, 0, 0); font-family: monospace;
      font-size: medium; font-style: normal; font-variant: normal;
      font-weight: normal; letter-spacing: normal; line-height: normal;
      orphans: 2; text-align: start; text-indent: 0px; text-transform:
      none; white-space: pre-wrap; widows: 2; word-spacing: 0px;
      -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
      display: inline !important; float: none; "><br>
      AjaxCounterExample&gt;&gt;renderScriptsOn: with single quotes. <br>
      <br>
      new Counter('/76S.tbklwPZckEDg94Zqgn7tB.-');
      counter.install('#count', '#dec', '#inc');<br>
      <br>
      <br>
      The code in question is: <br>
      <br>
    </span><span style="color: rgb(0, 0, 0); font-family: monospace;
      font-size: medium; font-style: normal; font-variant: normal;
      font-weight: normal; letter-spacing: normal; line-height: normal;
      orphans: 2; text-align: start; text-indent: 0px; text-transform:
      none; white-space: pre-wrap; widows: 2; word-spacing: 0px;
      -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
      display: inline !important; float: none; ">AjaxCounterExample&gt;&gt;renderScriptsOn:<br>
      <br>
      [html text: 'var counter = new Counter("'.<br>
      html text: (html context registerResource: self resource)
      printString.<br>
      html text: '"); counter.install("#count", "#dec", "#inc");' ]<br>
    </span><br>
    A simple solution could be to write JavaScript with pairs of single
    quotes instead of double quotes. '' instead of ". Just a thought. <br>
    <br>
    Chris <br>
    <span style="color: rgb(0, 0, 0); font-family: monospace; font-size:
      medium; font-style: normal; font-variant: normal; font-weight:
      normal; letter-spacing: normal; line-height: normal; orphans: 2;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: pre-wrap; widows: 2; word-spacing: 0px;
      -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
      display: inline !important; float: none; "><br>
    </span>
  </body>
</html>