snice 4.0.0 → 4.0.2

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * snice v3.11.0
2
+ * snice v4.0.1
3
3
  * Imperative TypeScript framework for building vanilla web components with decorators, differential rendering, routing, and controllers. No virtual DOM, no build complexity.
4
4
  * (c) 2024
5
5
  * Released under the MIT License.
@@ -991,21 +991,6 @@ var Snice = (function (exports) {
991
991
  const attrNamesForParts = [];
992
992
  for (let i = 0; i < strings.length; i++) {
993
993
  let str = strings[i];
994
- // Encode slashes in attribute names to prevent browser from splitting them
995
- // HTML doesn't allow / in attribute names - browser treats it as whitespace
996
- // Replace / with __SLASH__ in attribute context only (before = sign, after last >)
997
- if (i < strings.length - 1) {
998
- const lastEquals = str.lastIndexOf('=');
999
- const lastCloseTag = str.lastIndexOf('>');
1000
- if (lastEquals > lastCloseTag) {
1001
- // We're in an attribute context - encode slashes in the attribute name
1002
- const beforeEquals = str.substring(0, lastEquals);
1003
- const attrStartIdx = beforeEquals.lastIndexOf('>') + 1;
1004
- const attrPart = beforeEquals.substring(attrStartIdx);
1005
- const encodedAttrPart = attrPart.replace(/\//g, '__SLASH__');
1006
- str = beforeEquals.substring(0, attrStartIdx) + encodedAttrPart + str.substring(lastEquals);
1007
- }
1008
- }
1009
994
  htmlParts.push(str);
1010
995
  if (i < strings.length - 1) {
1011
996
  // Check if we're in an attribute context
@@ -1019,9 +1004,7 @@ var Snice = (function (exports) {
1019
1004
  attrStart--;
1020
1005
  }
1021
1006
  const attrName = str.substring(attrStart + 1, lastEquals).trim();
1022
- // Decode the slash encoding to get original name
1023
- const originalAttrName = attrName.replace(/__SLASH__/g, '/');
1024
- attrNamesForParts.push(originalAttrName);
1007
+ attrNamesForParts.push(attrName);
1025
1008
  htmlParts.push(marker);
1026
1009
  }
1027
1010
  else {