tutuca 0.9.87 → 0.9.89

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tutuca",
3
- "version": "0.9.87",
3
+ "version": "0.9.89",
4
4
  "type": "module",
5
5
  "description": "Zero-dependency SPA framework with immutable state and virtual DOM",
6
6
  "main": "./dist/tutuca.js",
@@ -1979,7 +1979,7 @@ class ANode extends BaseNode {
1979
1979
  const isPseudoX = attrs[0]?.name === "@x";
1980
1980
  if (tag === "X" || isPseudoX)
1981
1981
  return parseXOp(attrs, childs, isPseudoX ? 1 : 0, px);
1982
- else if (tag.charCodeAt(1) === 58 && tag.charCodeAt(0) === 88) {
1982
+ else if (tag.charCodeAt(1) === 58 && (tag.charCodeAt(0) === 88 || tag.charCodeAt(0) === 120)) {
1983
1983
  const macroName = tag.slice(2).toLowerCase();
1984
1984
  if (macroName === "slot") {
1985
1985
  const slotName = attrs.getNamedItem("name")?.value ?? "_";