You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think this is what you would expect upon calling the add function, although the same happens if you were to do $0.classList.add(['one','two']). The only reason I think this behaviour is bad is that the function is defined to take a list explicitly, so you might expect the first behaviour instead of the second.
Since this is all generated code I have no idea if it is at all fixable, of course the workaround is simple enough: just call DOMTokenList.add individually for each addition.
The text was updated successfully, but these errors were encountered:
DOMTokenList operates on lists, but it appears that it shouldn't.
https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList
Intended use:
But calling from haskell
results in
I don't think this is what you would expect upon calling the
add
function, although the same happens if you were to do$0.classList.add(['one','two'])
. The only reason I think this behaviour is bad is that the function is defined to take a list explicitly, so you might expect the first behaviour instead of the second.Since this is all generated code I have no idea if it is at all fixable, of course the workaround is simple enough: just call
DOMTokenList.add
individually for each addition.The text was updated successfully, but these errors were encountered: