Project

Profile

Help

Feature #5923 ยป Re_ [SaxonJS - Feature #5923] Provide a way to control event listener parameters - 2023-06-08T17_32_12Z.eml

Martynas Jusevicius, 2023-06-08 19:32

 
X-He-Spam-Score: -1.9
Return-Path: <martynas@atomgraph.com>
Delivered-To: dropbox@plan.io
Received: from m.launch.gmbh ([127.0.0.1])
by m.launch.gmbh with LMTP id KOfqGY4QgmQURwAAJzdhvw
for <dropbox@plan.io>; Thu, 08 Jun 2023 19:31:58 +0200
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on m.launch.gmbh
X-Spam-Level:
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,
DKIM_VALID,DMARC_NONE,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,
RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Report:
* -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at
* https://www.dnswl.org/, no trust
* [209.85.214.180 listed in list.dnswl.org]
* -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
* [score: 0.0000]
* 0.1 DMARC_NONE DMARC record not found
* -0.1 SPF_PASS SPF check passed
* 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3)
* [209.85.214.180 listed in wl.mailspike.net]
* 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
* 0.0 HTML_MESSAGE BODY: HTML included in message
* 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
* valid
* -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
* 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders
* -0.0 T_SCC_BODY_TEXT_LINE No description available.
X-Spam-Score: -1.9
Envelope-to: inbox+saxonica+f38e+saxon-js@plan.io
Authentication-Results: m.launch.gmbh; dmarc=none (p=none dis=none) header.from=atomgraph.com
Authentication-Results: m.launch.gmbh; spf=pass smtp.mailfrom=martynas@atomgraph.com
Authentication-Results: m.launch.gmbh;
dkim=pass (2048-bit key; unprotected) header.d=atomgraph-com.20221208.gappssmtp.com header.i=@atomgraph-com.20221208.gappssmtp.com header.b="bno9c0Q3";
dkim-atps=neutral
Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))
(No client certificate requested)
by m.launch.gmbh (Postfix) with ESMTPS id 08DA280173
for <inbox+saxonica+f38e+saxon-js@plan.io>; Thu, 8 Jun 2023 19:31:57 +0200 (CEST)
Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-1b011cffe7fso5132295ad.1
for <inbox+saxonica+f38e+saxon-js@plan.io>; Thu, 08 Jun 2023 10:31:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=atomgraph-com.20221208.gappssmtp.com; s=20221208; t=1686245516; x=1688837516;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:from:to:cc:subject:date:message-id:reply-to;
bh=tJj4gIsWyK6l7vKjP9zp/60eENGwqawwBh6HavJPAQM=;
b=bno9c0Q3PuaNQ6NYXYbjBXZcP/0H2kuLWe+Be28ibfST+Byk50zXybeWXQXy0Q6EQK
0vKVH322JlC9XXV5hshVkQ8Nq+2FvK5AT+NvevAMELOy9vDKkzipQPh1Gdgh7FN/DS1j
Ohw7wtM/qmK0ZVoC2hUodr7jrelbhtuyrm1J880PJwU8iZjQsPyUPiq9WTNGnpXnvdF3
XM9FJw+E65k1KbpDOUwUv57ifXfidW3zQyDiInOL/DBW27ytMx3cCvAMl++amIbT7UMN
BLwm6yxph4mmQeXsna+v47+F2Pl++E6XxHmJl+mhUrXr87f01LEYiNwmEzpkOsEYrMeN
VpDA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20221208; t=1686245516; x=1688837516;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=tJj4gIsWyK6l7vKjP9zp/60eENGwqawwBh6HavJPAQM=;
b=GQyFe9N/8igyyX5xqRn5NbrrUqU30Saz33Qcqk4+zkkMr1IP+0Yv9d5ndJGV1e5G+k
i4NeLbZvj/Y0L0p1J67v9ayBbf0Y/JwL3Q5J/MsLjqWzxUjtWc75ba5NSvjoE/tLtZ9N
JQ0AsmJZcbucUzPJ7Z6c3YrHdp9pzSCxU7znf3wtrHj1lRb4qYhCOt2grgebUSm7CWa4
sWJxwEf9GxyBdfhpz6hSuYJ6O4mxsip79+/BDL3JznYsGCb3rR9ZSFA0Z8Z5s/g+AzOj
vZsBy1g7ymX/IQVpd/LYUfWNqB73tyl/HmF9Y9zOu9PdA/r54+zLzuvZ2QnYPgtx91eo
PeqQ==
X-Gm-Message-State: AC+VfDwWpMzarUaha3jpzby0g9LefQ7YnG6Ah27l0axg0OKPNDWgpigs
pMV+KHIkjfDlVu+JoUnTi6LG6T3NONqN7w3kilDyxdCwyHZQUdJj
X-Google-Smtp-Source: ACHHUZ6xViVGFsmuyTh7u2T5RxvwUrVwiGYI1A2zG913ZoP/I01koAtHf9DJ/QrLA7T05clcNVqaL2MMtdByYwZF5uM=
X-Received: by 2002:a17:903:11c6:b0:1b1:b0d6:669c with SMTP id
q6-20020a17090311c600b001b1b0d6669cmr5299542plh.18.1686245515338; Thu, 08 Jun
2023 10:31:55 -0700 (PDT)
MIME-Version: 1.0
References: <redmine.issue-5923.20230317140436.3767@plan.io> <redmine.journal-24006.20230608170015.3767@plan.io>
In-Reply-To: <redmine.journal-24006.20230608170015.3767@plan.io>
From: =?UTF-8?Q?Martynas_Jusevi=C4=8Dius?= <martynas@atomgraph.com>
Date: Thu, 8 Jun 2023 19:31:44 +0200
Message-ID: <CAE35Vmw2CN8kinPynaxzxNTxn35+zBKYPBM6cwQyPTbVavt5Ww@mail.gmail.com>
Subject: Re: [SaxonJS - Feature #5923] Provide a way to control event listener parameters
To: Saxonica Developer Community <inbox+saxonica+f38e+saxon-js@plan.io>
Content-Type: multipart/alternative; boundary="000000000000f23ebb05fda1a099"

--000000000000f23ebb05fda1a099
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

My understanding is that despite this new feature allowing to set event
option =E2=80=98passive: false()=E2=80=99, it will have no effect because d=
ocument-level
events are =E2=80=9Cpassive by default=E2=80=9D and SaxonJS is binding list=
eners at
document level. Does that make sense?

On Thu, 8 Jun 2023 at 19.00, Saxonica Developer Community <
notifications@plan.io> wrote:

> --- In your reply, please do not write below this line ---
> Issue #5923 <https://saxonica.plan.io/issues/5923?pn=3D1#change-24006> ha=
s
> been updated by Norm Tovey-Walsh.
> ------------------------------
>
>
> I'm not sure what to suggest by way of a workaround for now. This is fixe=
d
> for SaxonJS 3.0.
> ------------------------------
> Feature #5923: Provide a way to control event listener parameters
> <https://saxonica.plan.io/issues/5923?pn=3D1#change-24006> closed
>
> - *Author: *Martynas Jusevicius
> - *Status: *Resolved
> - *Priority: *Normal
> - *Category: *IXSL extensions
> - *Start date: *2023-03-17
> - *Applies to JS Branch: *Trunk
> - *Fix Committed on JS Branch: *Trunk
> - *Company: *
> - *Contact person: *
> - *Additional contact persons: *
>
> I'm getting this warning in a <xsl:template match=3D"svg:svg"
> mode=3D"ixsl:onwheel"> template:
>
> Ignoring 'preventDefault()' call on event of type 'wheel' from a listener=
registered as 'passive'.
>
> I haven't set the passive parameter, so I suppose SaxonJS has?
>
> Can we have a get a general mechanism for controlling event listener
> parameters
> <https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventLis=
tener#parameters>?
> I'm imagining something like this:
>
> <xsl:template match=3D"svg:svg" mode=3D"ixsl:onwheel" ixsl:event-options=
=3D"map{ 'capture': true(), 'passive': false() }">
>
> Files Screenshot 2023-05-20 181518.png
> <https://saxonica.plan.io/attachments/download/64094/Screenshot%202023-05=
-20%20181518.png>
> (86.8 KB)
> ------------------------------
>
> You have received this notification because you have either subscribed to
> or are involved in a project on Saxonica Developer Community site. To
> change your notification preferences, please click here:
> https://saxonica.plan.io/my/account?tour=3Dmail_preferences
>
> This notification was cheerfully delivered by <https://plan.io/>
> [image: Planio] <https://plan.io/>
>

--000000000000f23ebb05fda1a099
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">My understanding is that despite this new feature allowin=
g to set event option =E2=80=98passive: false()=E2=80=99, it will have no e=
ffect because document-level events are =E2=80=9Cpassive by default=E2=80=
=9D and SaxonJS is binding listeners at document level. Does=C2=A0that make=
sense?</div><div dir=3D"auto"><br></div><div><div class=3D"gmail_quote"><d=
iv dir=3D"ltr" class=3D"gmail_attr">On Thu, 8 Jun 2023 at 19.00, Saxonica D=
eveloper Community &lt;<a href=3D"mailto:notifications@plan.io">notificatio=
ns@plan.io</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;=
padding-left:1ex;border-left-color:rgb(204,204,204)"><u></u>







<div style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif;fo=
nt-size:14px;line-height:1.4em;color:rgb(51,52,52)">
<table width=3D"100%" cellspacing=3D"0" cellpadding=3D"0" style=3D"border-c=
ollapse:collapse;border-spacing:0px;margin-bottom:0px;width:100%;border:med=
ium;padding:0px;font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif"=
>
<tbody style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif"=
><tr style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif"><=
td style=3D"text-align:center;width:100%;font-family:MarketWeb,Helvetica,Ar=
ial,sans-serif;font-size:0.8em;border:medium;padding:0px;color:rgb(215,215,=
215)"><p style=3D"font-family:MarketWeb,Helvetica,Arial,sans-serif">--- In =
your reply, please do not write below this line ---</p></td></tr>
<tr style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif"><t=
d style=3D"border:medium;padding:0px;font-family:ProximaNova-Regular,Helvet=
ica,Arial,sans-serif">Issue <a href=3D"https://saxonica.plan.io/issues/5923=
?pn=3D1#change-24006" style=3D"font-family:ProximaNova-Regular,Helvetica,Ar=
ial,sans-serif;color:rgb(0,136,183)" target=3D"_blank">#5923</a> has been u=
pdated by Norm Tovey-Walsh.
<hr style=3D"width:100%;height:1px;background:0% repeat rgb(204,204,204);bo=
rder:0px;margin:1.2em 0px;font-family:ProximaNova-Regular,Helvetica,Arial,s=
ans-serif">

<ul style=3D"margin-bottom:1.5em;font-family:ProximaNova-Regular,Helvetica,=
Arial,sans-serif;color:rgb(149,149,149)">
</ul>

<p style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif">I&#=
39;m not sure what to suggest by way of a workaround for now. This is fixed=
for SaxonJS 3.0.</p>
<hr style=3D"width:100%;height:1px;background:0% repeat rgb(204,204,204);bo=
rder:0px;margin:1.2em 0px;font-family:ProximaNova-Regular,Helvetica,Arial,s=
ans-serif">
<h1 style=3D"font-family:ProximaNova-Bold,Helvetica,Arial,sans-serif;font-w=
eight:normal;margin:0px;font-size:1.3em;line-height:1.4em">
<a href=3D"https://saxonica.plan.io/issues/5923?pn=3D1#change-24006" styl=
e=3D"text-decoration:none;font-family:ProximaNova-Bold,Helvetica,Arial,sans=
-serif;color:rgb(0,136,183)" target=3D"_blank">Feature #5923: Provide a way=
to control event listener parameters</a>
<span style=3D"font-weight:bold;font-size:10px;padding:1px 3px;margin-rig=
ht:2px;margin-left:2px;border-radius:2px;text-transform:uppercase;text-deco=
ration:none;border:1px solid rgb(29,120,29);font-family:ProximaNova-Bold,He=
lvetica,Arial,sans-serif;color:rgb(29,120,29)">closed</span>
</h1>

<ul style=3D"margin-bottom:1.5em;font-family:ProximaNova-Regular,Helvetica,=
Arial,sans-serif;color:rgb(149,149,149)"><li style=3D"font-family:ProximaNo=
va-Regular,Helvetica,Arial,sans-serif"><strong style=3D"font-family:Proxima=
Nova-Regular,Helvetica,Arial,sans-serif">Author: </strong>Martynas Jusevici=
us</li>
<li style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif"><s=
trong style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif">=
Status: </strong>Resolved</li>
<li style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif"><s=
trong style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif">=
Priority: </strong>Normal</li>
<li style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif"><s=
trong style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif">=
Category: </strong>IXSL extensions</li>
<li style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif"><s=
trong style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif">=
Start date: </strong>2023-03-17</li>
<li style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif"><s=
trong style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif">=
Applies to JS Branch: </strong>Trunk</li>
<li style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif"><s=
trong style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif">=
Fix Committed on JS Branch: </strong>Trunk</li>
<li style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif"><s=
trong style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif">=
Company: </strong></li>
<li style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif"><s=
trong style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif">=
Contact person: </strong></li>
<li style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif"><s=
trong style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif">=
Additional contact persons: </strong></li></ul>

<p style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif">I&#=
39;m getting this warning in a <code style=3D"font-family:Hack,Consolas,Men=
lo,&quot;Liberation Mono&quot;,Courier,monospace;font-size:85%;border-radiu=
s:3px;padding:0.2em;margin:0px;background-color:rgb(236,236,236)">&lt;xsl:t=
emplate match=3D&quot;svg:svg&quot; mode=3D&quot;ixsl:onwheel&quot;&gt;</co=
de> template:</p>
<pre style=3D"font-family:Hack,Consolas,Menlo,&quot;Liberation Mono&quot;,C=
ourier,monospace;font-size:85%;margin:1em 0px;padding:8px;border:medium;bor=
der-radius:3px;width:auto;overflow:auto hidden;background-color:rgb(236,236=
,236)"><code style=3D"font-family:Hack,Consolas,Menlo,&quot;Liberation Mono=
&quot;,Courier,monospace;font-size:85%;border-radius:3px;margin:0px;padding=
:0px;background-color:rgb(236,236,236)">Ignoring &#39;preventDefault()&#39;=
call on event of type &#39;wheel&#39; from a listener registered as &#39;p=
assive&#39;.
</code></pre>
<p style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif">I h=
aven&#39;t set the <code style=3D"font-family:Hack,Consolas,Menlo,&quot;Lib=
eration Mono&quot;,Courier,monospace;font-size:85%;border-radius:3px;paddin=
g:0.2em;margin:0px;background-color:rgb(236,236,236)">passive</code> parame=
ter, so I suppose SaxonJS has?</p>
<p style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif">Can=
we have a get a general mechanism for controlling <a href=3D"https://devel=
oper.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#parameters=
" style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif;color=
:rgb(0,136,183)" target=3D"_blank">event listener parameters</a>? I&#39;m i=
magining something like this:</p>
<pre style=3D"font-family:Hack,Consolas,Menlo,&quot;Liberation Mono&quot;,C=
ourier,monospace;font-size:85%;margin:1em 0px;padding:8px;border:medium;bor=
der-radius:3px;width:auto;overflow:auto hidden;background-color:rgb(236,236=
,236)"><code style=3D"font-family:Hack,Consolas,Menlo,&quot;Liberation Mono=
&quot;,Courier,monospace;font-size:85%;border-radius:3px;margin:0px;padding=
:0px;background-color:rgb(236,236,236)"><span style=3D"font-family:Hack,Con=
solas,Menlo,&quot;Liberation Mono&quot;,Courier,monospace">&lt;xsl:template=
</span> <span style=3D"font-family:Hack,Consolas,Menlo,&quot;Liberation Mon=
o&quot;,Courier,monospace">match=3D</span><span style=3D"font-family:Hack,C=
onsolas,Menlo,&quot;Liberation Mono&quot;,Courier,monospace">&quot;svg:svg&=
quot;</span> <span style=3D"font-family:Hack,Consolas,Menlo,&quot;Liberatio=
n Mono&quot;,Courier,monospace">mode=3D</span><span style=3D"font-family:Ha=
ck,Consolas,Menlo,&quot;Liberation Mono&quot;,Courier,monospace">&quot;ixsl=
:onwheel&quot;</span> <span style=3D"font-family:Hack,Consolas,Menlo,&quot;=
Liberation Mono&quot;,Courier,monospace">ixsl:event-options=3D</span><span =
style=3D"font-family:Hack,Consolas,Menlo,&quot;Liberation Mono&quot;,Courie=
r,monospace">&quot;map{ &#39;capture&#39;: true(), &#39;passive&#39;: false=
() }&quot;</span><span style=3D"font-family:Hack,Consolas,Menlo,&quot;Liber=
ation Mono&quot;,Courier,monospace">&gt;</span>
</code></pre>

<fieldset style=3D"border-style:solid;border-width:1px 0px 0px;font-famil=
y:ProximaNova-Regular,Helvetica,Arial,sans-serif;border-color:rgb(204,204,2=
04)"><legend style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-=
serif">Files</legend>
<a href=3D"https://saxonica.plan.io/attachments/download/64094/Screensh=
ot%202023-05-20%20181518.png" style=3D"font-family:ProximaNova-Regular,Helv=
etica,Arial,sans-serif;color:rgb(0,136,183)" target=3D"_blank">Screenshot 2=
023-05-20 181518.png</a>
(86.8 KB)<br>
</fieldset>

<div style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif"><=
div style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif"></=
div></div>

</td></tr>
<tr style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif"><t=
d style=3D"font-size:0.8em;width:100%;border:medium;padding:0px;font-family=
:ProximaNova-Regular,Helvetica,Arial,sans-serif"><hr style=3D"width:100%;he=
ight:1px;background:0% repeat rgb(204,204,204);border:0px;margin:1.2em 0px;=
font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif"><p style=3D"fon=
t-family:ProximaNova-Regular,Helvetica,Arial,sans-serif">You have received =
this notification because you have either subscribed to or are involved in =
a project on Saxonica Developer Community site.
To change your notification preferences, please click here: <a href=3D"http=
s://saxonica.plan.io/my/account?tour=3Dmail_preferences" style=3D"font-fami=
ly:ProximaNova-Regular,Helvetica,Arial,sans-serif;color:rgb(0,136,183)" tar=
get=3D"_blank">https://saxonica.plan.io/my/account?tour=3Dmail_preferences<=
/a></p></td></tr>
<tr style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif"><t=
d style=3D"text-align:center;width:100%;font-family:MarketWeb,Helvetica,Ari=
al,sans-serif;font-size:1.2em;border:medium;padding:0px;color:rgb(215,215,2=
15)"><br><div style=3D"font-family:MarketWeb,Helvetica,Arial,sans-serif"><a=
href=3D"https://plan.io/" style=3D"text-decoration:none;font-family:Market=
Web,Helvetica,Arial,sans-serif;color:rgb(215,215,215)" target=3D"_blank">Th=
is notification was cheerfully delivered by</a></div></td></tr>
<tr style=3D"font-family:ProximaNova-Regular,Helvetica,Arial,sans-serif"><t=
d style=3D"text-align:center;width:100%;border:medium;padding:0px;font-fami=
ly:ProximaNova-Regular,Helvetica,Arial,sans-serif"><a href=3D"https://plan.=
io/" title=3D"Planio" style=3D"font-family:ProximaNova-Regular,Helvetica,Ar=
ial,sans-serif;color:rgb(0,136,183)" target=3D"_blank"><img src=3D"https://=
assets.plan.io/images/planio_logo_gray_204x50.png" height=3D"25" width=3D"1=
02" border=3D"0" alt=3D"Planio" style=3D"vertical-align: middle; border: me=
dium; font-family: ProximaNova-Regular, Helvetica, Arial, sans-serif;"></a>=
</td></tr>
</tbody></table></div></blockquote></div></div>

--000000000000f23ebb05fda1a099--
    (1-1/1)