(Unofficial) Elemental2 2.27 question

37 views
Skip to first unread message

Vassilis Virvilis

unread,
Apr 24, 2020, 9:16:05 AM4/24/20
to google-we...@googlegroups.com

Hi,

I updated to Elemental 2.27 from 2.25 and
a) Element has no children property
b) it depends on jsinterop-annotations-1.0.2.jar but jsinterop-annotations-2.8.2-v20191108.jar exists. Is jsinterop-annotations-2.8.2-v20191108.jar a J2CL thing?

Any ideas?

--
Vassilis Virvilis

Peter Donald

unread,
Apr 25, 2020, 5:56:55 AM4/25/20
to GWT Mailing List
On Fri, Apr 24, 2020 at 11:15 PM Vassilis Virvilis <vas...@gmail.com> wrote:
> I updated to Elemental 2.27 from 2.25 and
> a) Element has no children property

I haven't got an IDE handy but that is what I would expect. IIRC
Element extends Node and Node has a read only attribute childNodes ...
at least according to the spec WebIDL AFAIK. I would have to
investigate the closure externs to figure out why it used to have a
children property.

> b) it depends on jsinterop-annotations-1.0.2.jar but jsinterop-annotations-2.8.2-v20191108.jar exists. Is jsinterop-annotations-2.8.2-v20191108.jar a J2CL thing?

1.0.2 is released by google so I just preferred the use of that as I
expect other libraries would depend on this jar and having a shared
coordinate reduces the likelihood of ending up with two copies of it
in the project class path

--
Cheers,

Peter Donald

Vassilis Virvilis

unread,
Apr 25, 2020, 6:07:10 AM4/25/20
to google-we...@googlegroups.com
Hi,

Thanks for answering.

a)
children is an Element property and it returns a HTMLCollection. See here: https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/children
Also this issue has been brought up as a bug before but It had never bitten me personally. See here: https://github.com/google/elemental2/issues/33

b) Yes but this where I am now. I have two copies of jsinterop-annotations-2.8.2-v20191108.jar in my system.
Ok actually scratch that.
I am not 100% sure because I also don't have and IDE handly and I have reverted to 2.25
but if you care I can update to 2.27 and report If I two versions of jsinterop-annotations in my system and possibly who brings it in.

Just let me know.

Thanks again

    Vassilis
.


--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CACiKNc6famF88h-Vsjqdta%2BQ4GgtvqUJm1kLBPtxUkyeGhLyLA%40mail.gmail.com.


--
Vassilis Virvilis
Reply all
Reply to author
Forward
0 new messages