Skip to content

Commit

Permalink
Update elements
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and Parnassius committed Nov 1, 2024
1 parent a35e14f commit bf188ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog

## [Unreleased]
### HTML spec
- Add the `alpha` and `colorspace` attributes to the `input` element.

## [0.4.5] - 2024-09-30
### Changed
Expand Down
2 changes: 2 additions & 0 deletions domify/html_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,9 +629,11 @@ class Input(HtmlElement):
is_empty = True
element_attributes = {
"accept": v.attribute_str,
"alpha": v.attribute_bool,
"alt": v.attribute_str,
"autocomplete": v.attribute_str,
"checked": v.attribute_bool,
"colorspace": {"limited-srgb", "display-p3"},
"dirname": v.attribute_str,
"disabled": v.attribute_bool,
"form": v.attribute_str,
Expand Down

0 comments on commit bf188ec

Please sign in to comment.