https://saxonica.plan.io/https://saxonica.plan.io/favicon.ico2017-10-27T10:02:58ZSaxonica Developer CommunitySaxonJS - Bug #3499: Keys should be invalidated if the (relevant part of the) HTML page is updatedhttps://saxonica.plan.io/issues/3499?journal_id=104022017-10-27T10:02:58ZDebbie Lockettdebbie@saxonica.com
<ul></ul><p>The second sample above should be</p>
<pre><code><xsl:template name="overwrite">
<xsl:result-document href="#target" method="ixsl:replace-content">
<textarea id="input"></textarea>
</xsl:result-document>
</xsl:template>
</code></pre> SaxonJS - Bug #3499: Keys should be invalidated if the (relevant part of the) HTML page is updatedhttps://saxonica.plan.io/issues/3499?journal_id=104032017-10-27T10:05:03ZDebbie Lockettdebbie@saxonica.com
<ul></ul><p>JS unit test ixsl/get02 added to replicate the problem.</p> SaxonJS - Bug #3499: Keys should be invalidated if the (relevant part of the) HTML page is updatedhttps://saxonica.plan.io/issues/3499?journal_id=104042017-10-27T10:28:51ZDebbie Lockettdebbie@saxonica.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>Fix Committed on JS Branch</strong> <i>1.0, Trunk</i> added</li></ul><p>The fix is to clear all keys every time xsl:result-document is used to insert into the HTML page. (We only really need to invalidate "relevant" keys, but knowing which these are may be complicated; so it is simpler to always invalidate all keys.) This is done using</p>
<pre><code>window.document._saxonIndexes = {};
</code></pre>
<p>within Expr.resultDoc.</p>
<p>Fix committed on 1.0 and trunk (2.0) branches.</p> SaxonJS - Bug #3499: Keys should be invalidated if the (relevant part of the) HTML page is updatedhttps://saxonica.plan.io/issues/3499?journal_id=115832018-05-09T10:21:05ZDebbie Lockettdebbie@saxonica.com
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li><li><strong>Fixed in JS Release</strong> set to <i>Saxon-JS 1.1.0</i></li></ul><p>Bug fix applied in the Saxon-JS 1.1.0 maintenance release.</p>