From 074987110d5e0586d971e0f39c2174eb17621d42 Mon Sep 17 00:00:00 2001 From: Damir Date: Thu, 3 Nov 2022 02:08:01 +0100 Subject: [PATCH] Remove attributes with undefined or null value --- changelog.md | 4 ++++ docs-src/md/changelog.md | 4 ++++ docs-src/pages/index.html | 2 +- docs/demo.html | 7 +++++++ docs/docs.html | 7 +++++++ docs/index.html | 9 ++++++++- docs/test.html | 7 +++++++ package.json | 2 +- src/process-attributes.js | 8 ++++++++ test/templates/components/remove-attributes.html | 7 +++++++ test/test-attributes.js | 9 +++++++++ 11 files changed, 63 insertions(+), 3 deletions(-) create mode 100644 test/templates/components/remove-attributes.html diff --git a/changelog.md b/changelog.md index edeec3f..1528427 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +## 1.0.0-beta.13 (2022-11-03) + +* Remove attributes that have "undefined" or "null" value + ## 1.0.0-beta.12 (2022-10-31) * Added more utilities diff --git a/docs-src/md/changelog.md b/docs-src/md/changelog.md index 445cc6b..226311e 100644 --- a/docs-src/md/changelog.md +++ b/docs-src/md/changelog.md @@ -1,3 +1,7 @@ +## 1.0.0-beta.13 (2022-11-03) + +* Remove attributes that have "undefined" or "null" value + ## 1.0.0-beta.12 (2022-10-31) * Added more utilities diff --git a/docs-src/pages/index.html b/docs-src/pages/index.html index 1ed568a..41ae05f 100644 --- a/docs-src/pages/index.html +++ b/docs-src/pages/index.html @@ -14,7 +14,7 @@

Build the web with PostHTML

- Currently v1.0.0-beta.12 + Currently v1.0.0-beta.13 · Changelog

diff --git a/docs/demo.html b/docs/demo.html index 3b01831..778bd4f 100644 --- a/docs/demo.html +++ b/docs/demo.html @@ -77,6 +77,13 @@

Currently - v1.0.0-beta.12 + v1.0.0-beta.13 · Changelog

@@ -93,6 +93,13 @@