All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Changed some internal uses of
into_iter()
toiter()
for future proofing. (#78)
- Most types now implement
Send
. (#53) - All tags now support the ARIA
role
attribute. (#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)
- Text in attributes are quoted less aggressively when stringified. (#26, #49)
- Attribute type conversion is now using the recently stabilised
TryFrom
instead ofFrom
, to avoid relying on panickingFrom
implementations to detect conversion errors, though the conversions inside the macro will still panic if they fail. The appropriateTryFrom
implementations have been added toClass
,Id
,SpacedList
andSpacedSet
, and the correspondingFrom
implementations have been removed.
- Support for the Dodrio virtual DOM renderer: the
dodrio_macro
feature flag enables thetyped_html::dodrio
macro, which generates code to build adodrio::Node
directly, without going viaVNode
s. (#38)
- Added the missing attributes to the
<video>
tag, which was previously listed as having none. (#32)
typed-html
now works on stable rustc. (#1)- All elements and HTML marker traits now implement
IntoIterator
, so you can return them directly from a group. (#12)
- Boolean flags are now correctly rendered as empty when stringifying. (#13, #14)
- Non-self-closing tags are now correctly rendered with a closing tag in the HTML style, rather than in the XML style. (#15, #16)
This is the initial release.