Binding to HTLMElement dataset

interop

#1

Hi,

Is there a way to use HTLMElement dataset (https://developer.mozilla.org/en-US/docs/Web/API/HTMLOrForeignElement/dataset) in bucklescript? bs-webapi Webapi.Dom.HtmlElement.dataset returns a Dom.domStringMap, but it looks like it’s a dead-end, there’s no function to manipulate a Dom.domStringMap and gets its content.

Thanks!


#2

DOMStringMap is listed under “Unimplemented interfaces”. So you can either contribute to bs-webapi, or start by implementing some bindings using the Dom.domStringMap in your project.


#3

ok thanks @hoichi, do you know if the PRs get processed quickly usually? If so I might create one if I’m happy with the bindings I’d add in my own project.


#4

Glenn is usually pretty responsive to PRs.


#5

Ok thanks @yawaramin I’ll do that then!