Releases: bodil/typed-html
Releases · bodil/typed-html
0.2.1
Added
- Most types now implement
Send. (#53) - All tags now support the ARIA
roleattribute. (#47) - The
text!()macro now accepts expressions as value arguments. (#48) - You can now create "unsafe" text nodes with the
unsafe_text!()macro, which won't be quoted at all when stringifying, even if they contain HTML tags. This is a meaningless distinction when creating DOM nodes, however, and unsafe text nodes will behave like normal text nodes in this case. (#39)
Changed
- Text in attributes are quoted less aggressively when stringified. (#26, #49)
- Attribute type conversion is now using the recently stabilised
TryFrominstead ofFrom, to avoid relying on panickingFromimplementations to detect conversion errors, though the conversions inside the macro will still panic if they fail. The appropriateTryFromimplementations have been added toClass,Id,SpacedListandSpacedSet, and the correspondingFromimplementations have been removed.
0.2.0
Added
- Support for the Dodrio virtual DOM renderer: the
dodrio_macrofeature flag enables thetyped_html::dodriomacro, which generates code to build adodrio::Nodedirectly, without going viaVNodes. (#38)
Fixed
- Added the missing attributes to the
<video>tag, which was previously listed as having none. (#32)