marko 4.28.2 → 4.28.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -107,7 +107,7 @@ class Normalizer {
107
107
  } else if (context.ignoreUnrecognizedTags && tagName[0] === "@") {
108
108
  let owner = elNode.parentNode;
109
109
 
110
- while (owner && /^(?:for|while|if|else(?:-if))$/.test(owner.tagName)) {
110
+ while (owner && /^(?:for|while|if|else(?:-if))$|^@/.test(owner.tagName)) {
111
111
  owner = owner.parentNode;
112
112
  }
113
113
 
@@ -197,6 +197,9 @@ class TaglibLoader {
197
197
  }
198
198
  }
199
199
  }
200
+ scriptLang() {
201
+ // Marko 4 doesn't read script-lang, but it shouldn't break the app
202
+ }
200
203
  tagsDir(dir) {
201
204
  // The "tags-dir" property is used to supporting scanning
202
205
  // of a directory to discover custom tags. Scanning a directory
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "4.28.2",
3
+ "version": "4.28.3",
4
4
  "license": "MIT",
5
5
  "description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
6
6
  "dependencies": {
@@ -125,7 +125,7 @@ class Normalizer {
125
125
  } else if (context.ignoreUnrecognizedTags && tagName[0] === "@") {
126
126
  let owner = elNode.parentNode;
127
127
 
128
- while (owner && /^(?:for|while|if|else(?:-if))$/.test(owner.tagName)) {
128
+ while (owner && /^(?:for|while|if|else(?:-if))$|^@/.test(owner.tagName)) {
129
129
  owner = owner.parentNode;
130
130
  }
131
131
 
@@ -222,6 +222,9 @@ class TaglibLoader {
222
222
  }
223
223
  }
224
224
  }
225
+ scriptLang() {
226
+ // Marko 4 doesn't read script-lang, but it shouldn't break the app
227
+ }
225
228
  tagsDir(dir) {
226
229
  // The "tags-dir" property is used to supporting scanning
227
230
  // of a directory to discover custom tags. Scanning a directory