Open schloerke opened 4 months ago
HTML no longer inherits from str. This was done to avoid confusion between strings and HTML objects. (#TODO)
HTML
str
Tag and TagList's method .get_html_string() now both return str instead of HTML. (#TODO)
Tag
TagList
.get_html_string()
TagAttrDict no longer silently supports HTML values for attrs. Only str values are supported. (#TODO)
TagAttrDict
ReprHtml
_repr_html_
Benefits:
Breaking changes
HTML
no longer inherits fromstr
. This was done to avoid confusion between strings andHTML
objects. (#TODO)Tag
andTagList
's method.get_html_string()
now both returnstr
instead ofHTML
. (#TODO)TagAttrDict
no longer silently supportsHTML
values for attrs. Onlystr
values are supported. (#TODO)New features
ReprHtml
protocol class. If an object has a_repr_html_
method, then it is of instanceReprHtml
. (#TODO)Benefits:
str
type and anHTML
type.