Skip to content

Commit b12224e

Browse files
committed
5.0.0
1 parent c8ea32d commit b12224e

4 files changed

Lines changed: 17 additions & 6 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
cache: 'npm'
2424
cache-dependency-path: '**/package-lock.json'
2525
- run: npm ci
26-
- run: npm run build --if-present
26+
- run: npm run build:js --if-present
2727
- run: npm run coverage --if-present
2828
- name: Coveralls
2929
uses: coverallsapp/github-action@master

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: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
{
22
"name": "@webreflection/uhtml",
3-
"version": "4.7.1",
3+
"version": "5.0.0",
44
"type": "module",
55
"scripts": {
6-
"build": "npm run types && npm test && npm run build:prod && npm run build:dev && npm run size",
6+
"build": "npm run types && npm run build:js",
7+
"build:js": "npm test && npm run build:prod && npm run build:dev && npm run size",
78
"build:dev": "sed -i 's/false/true/' src/debug.js && rollup -c build/dev.js",
89
"build:prod": "sed -i 's/true/false/' src/debug.js && rollup -c build/prod.js",
910
"coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info",
1011
"size": "echo \"dom\t\t$(cat dist/prod/dom.js | brotli | wc -c)\"; echo \"json\t\t$(cat dist/prod/json.js | brotli | wc -c)\"; echo \"parser\t\t$(cat dist/prod/parser.js | brotli | wc -c)\"",
11-
"test": "node test/json.js && c8 node test/parser.js",
12+
"test": "c8 node test/parser.js",
13+
"test:json": "node test/json.js",
14+
"test:all": "npm run test:json && npm run test",
1215
"types": "tsc --allowJs --checkJs --lib dom,esnext --moduleResolution nodenext --module NodeNext --target esnext -d --emitDeclarationOnly --outDir ./types ./src/*.js ./src/*/*.js"
1316
},
1417
"files": [

0 commit comments

Comments
 (0)