Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make HTMLCollection and NodeList valid array types #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

decioferreira
Copy link

@decioferreira decioferreira commented Apr 13, 2020

SSCCE: https://ellie-app.com/8zCdXgf99qCa1

On the SSCCE above I would expect the decoders for both childNodes (NodeList) and children (HTMLCollection) to decode correctly to a list - this is similar to how it currently handles FileList.

Found this issue when trying to implement a flexible data table, similar to the one shown here: https://adamlynch.com/flexible-data-tables-with-css-grid/#resizing-columns-with-grid

This is similar to #9.

@decioferreira
Copy link
Author

decioferreira commented Apr 13, 2020

as mentioned on a conversation on elm-slack about this issue, a known workaround is to use https://package.elm-lang.org/packages/debois/elm-dom/latest/DOM#childNodes or to adapt it to our needs

@rupertlssmith
Copy link

rupertlssmith commented Feb 11, 2022

I create an Ellie which logs the fail outputs of the decoders, to make it clearer what this Ellie is testing.

https://ellie-app.com/gFrTm87Fz6wa1

rupertlssmith pushed a commit to elm-janitor/json that referenced this pull request Feb 17, 2023
Make HTMLCollection and NodeList valid array types
rupertlssmith pushed a commit to elm-janitor/json that referenced this pull request Feb 17, 2023
Make HTMLCollection and NodeList valid array types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants