24.10.0
- Implement
Element.__html__
. This avoids double escaping when passed tomarkupsafe.escape
and Django'sdjango.utils.html.conditional_escape
. PR #65. - Raise errors directly on invalid children. This avoids cryptic stack traces. PR #56.
- Raise TypeError rather than ValueError when invalid types are passed as attributes or children. PR #59.