I added attrs and data-attrs to retrieve the attributes for an element as a map with keyword keys. data-attrs returns just the data attributes without the "data-" prefix. Seems like this would make an obvious addition to dommy, I didn't see any other way to easily retrieve all attributes for an element.
I added
attrs
anddata-attrs
to retrieve the attributes for an element as a map with keyword keys.data-attrs
returns just the data attributes without the "data-" prefix. Seems like this would make an obvious addition to dommy, I didn't see any other way to easily retrieve all attributes for an element.Usage: