marko 5.39.6 → 5.39.7

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.
@@ -149,7 +149,7 @@ function triggerScript(html, triggers) {
149
149
  }
150
150
  });
151
151
  return (
152
- '((p,h,d,l=$=>d||p.insertAdjacentHTML("afterend",d=h))=>' + (
152
+ "((p,h,d,l=$=>d||p.after(new Range().createContextualFragment(d=h)))=>" + (
153
153
  exprs.length > 1 ? "{" + exprs.join(";") + "}" : exprs[0]) +
154
154
  ")(document.currentScript," +
155
155
  htmlStr +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "5.39.6",
3
+ "version": "5.39.7",
4
4
  "description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
5
5
  "keywords": [
6
6
  "front-end",
@@ -70,7 +70,7 @@
70
70
  },
71
71
  "dependencies": {
72
72
  "@marko/compiler": "^5.39.64",
73
- "@marko/runtime-tags": "^6.1.6",
73
+ "@marko/runtime-tags": "^6.1.7",
74
74
  "app-module-path": "^2.2.0",
75
75
  "argly": "^1.2.0",
76
76
  "browser-refresh-client": "1.1.4",
@@ -149,7 +149,7 @@ function triggerScript(html, triggers) {
149
149
  }
150
150
  });
151
151
  return (
152
- '((p,h,d,l=$=>d||p.insertAdjacentHTML("afterend",d=h))=>' +
152
+ "((p,h,d,l=$=>d||p.after(new Range().createContextualFragment(d=h)))=>" +
153
153
  (exprs.length > 1 ? "{" + exprs.join(";") + "}" : exprs[0]) +
154
154
  ")(document.currentScript," +
155
155
  htmlStr +