yoshuawuyts / html

Type-safe HTML support for Rust
Apache License 2.0
244 stars 7 forks source link

Add parsing of ARIA roles and properties #67

Closed alexmoon closed 11 months ago

alexmoon commented 12 months ago

This is a follow-on to #66.

yoshuawuyts commented 12 months ago

This is looking really good! Though can I ask we translate the content attribute names to their IDL names in this step? So for example, aria-roledescription we'd want to translate to ariaRoleDescription so that in our code we can snake_case it to aria_role_description. There's a translation table available here which provides the mappings from the attribute names to the IDL names.