Skip to content

Commit

Permalink
Add lang to html element attributes (#41)
Browse files Browse the repository at this point in the history
* Add lang to html element attributes

* Add changelog entry and bump version
  • Loading branch information
thomasborgen authored Sep 22, 2024
1 parent ca27349 commit f052367
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
## Latest Changes


## Version 5.3.1

* Adds `lang` as an attribute to the `Html` element.

## Version 5.3.0

### Feature
Expand Down
1 change: 1 addition & 0 deletions hypermedia/types/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ class GlobalAttrs(HtmlAndEventAttrs, HtmxAttrs, HyperscriptAttrs, total=False):
class HtmlTagAttrs(HypermediaAttrs, total=False):
"""Common attributes for HTML elements."""

lang: str
xmlns: str


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "hypermedia"
version = "5.3.0"
version = "5.3.1"
description = "An opinionated way to work with html in pure python with htmx support."
authors = ["Thomas Borgen <thomasborgen91@gmail.com>"]
readme = "README.md"
Expand Down

0 comments on commit f052367

Please sign in to comment.