Fix #1059 - Observe py-* attributes changes (#1435)

This commit is contained in:
Andrea Giammarchi
2023-05-03 09:50:21 +02:00
committed by GitHub
parent cd1aa948f9
commit e7aed7fcf0
3 changed files with 128 additions and 21 deletions

View File

@@ -11,6 +11,10 @@ Features
- The `py-mount` attribute on HTML elements has been deprecated, and will be removed in a future release.
### Runtime py- attributes
- Added logic to react to `py-*` attributes changes, removal, `py-*` attributes added to already live nodes but also `py-*` attributes added or defined via injected nodes (either appended or via `innerHTML` operations). ([#1435](https://github.com/pyscript/pyscript/pull/1435))
### <script type="py">
- Added the ability to optionally use `<script type="py">`, `<script type="pyscript">` or `<script type="py-script">` instead of a `<py-script>` custom element, in order to tackle cases where the content of the `<py-script>` tag, inevitably parsed by browsers, could accidentally contain *HTML* able to break the surrounding page layout. ([#1396](https://github.com/pyscript/pyscript/pull/1396))