google / elemental2

Type checked access to browser APIs for Java code.
Apache License 2.0
149 stars 37 forks source link

Add whatwg_encoding.js #166

Open niloc132 opened 2 months ago

niloc132 commented 2 months ago

This provides tools to convert js strings to and from streams and typed arrays.

Well supported in all browsers, this could be part of elemental2-core, or it could reasonably be a (very very small) new elemental2-encoding jar. I can write a patch either way, if you'd like.

gkdn commented 3 weeks ago

@jDramaix @mollyibot

mollyibot commented 3 weeks ago

I add it under dom, looks like it is dependent on streamsapi.js

jDramaix commented 3 weeks ago

I'm not sure if elemental2-dom is the right place to put this file. It's not related to dom manipulation. I agree that elemental2-dom already contains several API that is not dom related but we could maybe clean that up. Let's discuss that in our next team meeting.