Htmlgen

Latest version: v2.0.0

Safety actively analyzes 629639 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

0.99.3

API-Incompatible Changes

* Revert deriving from ABC classes.

0.99.2

API Additions

* `Element.data` does now derive from MutableMapping and implements all its
methods.

Improvements

* Derive `ChildGenerator`, `HTMLChildGenerator`, and `Element` from
Sized.

Bug Fixes

* Fix a few stubs.
* Fix incorrect usage of `AnyStr`.

0.99.1

API-Incompatible Changes

* `html_attribute()` at al. are now directly implemented using the descriptor
protocol, and not derived from property.

Improvements

* Add stub files.

0.99.0

First Beta Release

API Additions

* Add generate_html_string().
* Add css_class_attribute().
* Add Checkbox (<input type="checkbox">), RadioButton (<input type="radio">),
and Label (<label>).

API-Incompatible Changes

* Remove html_attribute() from htmlgen.element.

Improvements

* Render CSS classes alphabetically for easier unit testing.

Bug Fixes

* Fix PendingDeprecationWarnings.

0.9

API Additions

* Add IteratorGenerator.
* Add HiddenInput (<input type="hidden">), FileInput (<input type="file">),
SearchInput (<input type="search">), and TimeInput (<input type="time">).
* Add LineBreak (<br>).
* Table now has two overridable generator methods generate_header_rows() and
generate_rows().
* Add TextArea.placeholder property.
* Add NumberInput.number property.
* Add Form.target property and Form.set_blank_target().
* Add data_attribute(), list_html_attribute() and time_html_attribute().

API-Incompatible Changes

* Improve Element.id handling and raise ValueError on invalid ids.
* The default name of all input elements has been changed from None to the
empty string to match Input.name.
* NumberInput constructor: Replace value argument by number.

0.8

API Additions

* Add form elements TextArea (<textarea>), Select (<select>), OptionGroup
(<optgroup>), and Option (<option>).
* Add is_element() to check whether an object is an element generator of
a certain type.
* Forms now support multipart submissions using the Form.encryption_type and
Form.multipart attributes.

API-Incompatible Changes

* Fix the default HTTP method to be "GET" for forms as per HTML spec. This
avoids unexpected behaviour and the need for problematic workarounds
with "POST" forms.

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.