Skip to content

Commit 445d32b

Browse files
committed
5.0.0
1 parent c8ea32d commit 445d32b

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ On top of *JSX* like features, there are other attributes with a special meaning
7878

7979
All other attributes will be handled via standard `setAttribute` or `removeAttribute` when the passed value is either `null` or `undefined`.
8080

81+
### Special Elements
82+
83+
Elements that contain *data* such as `<script>` or `<style>`, or those that contains text such as `<textarea>` require *explicit closing tag* to avoid having in between templates able to break the layout.
84+
85+
This is nothing new to learn, it's just how the Web works, so that one cannot have `</script>` within a `<script>` tag content and the same applies in here.
86+
87+
In *debugging* mode, an error telling you which template is malformed will be triggered in these cases.
88+
8189
### About Comments
8290

8391
Useful for developers but never really relevant for end users, *comments* are ignored by default in *uhtml* except for those flagged as "*very important*".

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@webreflection/uhtml",
3-
"version": "4.7.1",
3+
"version": "5.0.0",
44
"type": "module",
55
"scripts": {
66
"build": "npm run types && npm test && npm run build:prod && npm run build:dev && npm run size",

0 commit comments

Comments
 (0)