marko 4.28.6 → 4.28.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.
@@ -659,7 +659,7 @@ function hasHTML(node, context) {
659
659
  let hasHTML = false;
660
660
  const walker = context.createWalker({
661
661
  enter(node) {
662
- if (node.type === "Html" || node.type === "TextVDOM" || node._isTagCall) {
662
+ if (node.type === "Html" || node.type === "StartTag" || node.type === "TextVDOM" || node.type === "HtmlElement" || node.type === "HtmlComment" || node.type === "EndElementVDOM" || node.type === "HtmlElementVDOM" || node._isTagCall) {
663
663
  hasHTML = true;
664
664
  walker.stop();
665
665
  } else if (node._isNestedTagCall) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "4.28.6",
3
+ "version": "4.28.7",
4
4
  "license": "MIT",
5
5
  "description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
6
6
  "dependencies": {
@@ -796,7 +796,16 @@ function hasHTML(node, context) {
796
796
  let hasHTML = false;
797
797
  const walker = context.createWalker({
798
798
  enter(node) {
799
- if (node.type === "Html" || node.type === "TextVDOM" || node._isTagCall) {
799
+ if (
800
+ node.type === "Html" ||
801
+ node.type === "StartTag" ||
802
+ node.type === "TextVDOM" ||
803
+ node.type === "HtmlElement" ||
804
+ node.type === "HtmlComment" ||
805
+ node.type === "EndElementVDOM" ||
806
+ node.type === "HtmlElementVDOM" ||
807
+ node._isTagCall
808
+ ) {
800
809
  hasHTML = true;
801
810
  walker.stop();
802
811
  } else if (node._isNestedTagCall) {