html-validate 11.5.4 → 11.5.5

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.
package/dist/esm/core.js CHANGED
@@ -2939,8 +2939,12 @@ class HtmlElement extends DOMNode {
2939
2939
  return null;
2940
2940
  }
2941
2941
  appendText(text, location) {
2942
- if (typeof text === "object" && "dynamic" in text) {
2943
- text = new DynamicValue(text.dynamic);
2942
+ if (typeof text !== "string") {
2943
+ if ("dynamic" in text) {
2944
+ text = new DynamicValue(text.dynamic);
2945
+ } else {
2946
+ text = new DynamicValue(text.expr);
2947
+ }
2944
2948
  }
2945
2949
  this.childNodes.push(new TextNode(text, location));
2946
2950
  }
@@ -12832,7 +12836,7 @@ class EventHandler {
12832
12836
  }
12833
12837
 
12834
12838
  const name = "html-validate";
12835
- const version = "11.5.4";
12839
+ const version = "11.5.5";
12836
12840
  const bugs = "https://gitlab.com/html-validate/html-validate/issues/new";
12837
12841
 
12838
12842
  function freeze(src) {