- Bump the minimum Python version to 3.9.
- Add the
alpha
andcolorspace
attributes to theinput
element.
- Bump the minimum Python version to 3.8.
- Add the
autocorrect
,writingsuggestions
,onbeforeinput
,onpagereveal
andonpageswap
global attributes. - Add the empty string value to the
spellcheck
global attribute. - Add the
shadowrootclonable
andshadowrootserializable
attributes to thetemplate
element.
- Add the
name
attribute to thedetails
element. - Add the
shadowrootmode
andshadowrootdelegatesfocus
to thetemplate
element. - Add the
onpagereveal
attribute to thebody
element.
- Remove the incorrect attributes
height
,media
andwidth
attributes frompicture
elements.
- Add the
fetchpriority
attribute to theimg
,link
andscript
elements. - Add the
plaintext-only
value to thecontenteditable
global attribute. - Add the
search
element. - Replace the
popoverhidetarget
,popovershowtarget
andpopovertoggletarget
attributes of thebutton
andinput
elements withpopovertarget
andpopovertargetaction
.
- Add the
popover
andonbeforetoggle
global attributes. - Add the
popoverhidetarget
,popovershowtarget
andpopovertoggletarget
attributes tobutton
andinput
elements. - Add the
dir
attribute tobdo
elements. - Add the
height
attribute topicture
elements.
- Explicitly support Python 3.11.
- Bump the minimum Python version from 3.7.0 to 3.7.2.
- Add the
onscrollend
global attribute. - Update the allowed values of the
hidden
global attribute.
- Remove upper bound on
typing-extensions
.
- Add the
blocking
attribute tolink
,script
andstyle
elements. - Add the
inert
andonbeforematch
global attributes. - Update the allowed values of the
sandbox
attributes ofiframe
elements. - Remove the deprecated
param
element.
- Automatically prepend a
DOCTYPE
declaration to<html>
elements. This behaviour can be overridden using the_prepend_doctype
keyword argument.
- Elements can be subscripted using slices, returning (or replacing/deleting) a slice of their children.
- Attribute validators follow a different naming scheme (for example
attribute_validators.bool_validator
is nowvalidators.attribute_bool
).
- Treat
BaseElement
as a simple container, omitting the start and end tags when rendering. - Implement
BaseElement.insert()
to add children at a given position.
BaseElement.children
andBaseElement.attributes
are no longer public.
- Initial release