Dataset automatic camel case to hyphen key conversion
g105b opened this issue · 1 comments
g105b commented
Dataset keys must all be hyphenated and lowercase, but the JavaScript implementation automatically converts to camel case, so it can be addressed as an object property.
This needs implementing in PHP, even though for type safety we have the get/set functions.
g105b commented
More information about the implementation: https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes:domstringmap-3