gyosjs 0.5.5 → 0.5.6

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/gyos.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * GyosJS v0.5.5
2
+ * GyosJS v0.5.6
3
3
  * (c) 2026
4
4
  * @license MIT
5
5
  */
@@ -2835,7 +2835,8 @@
2835
2835
  const propertyName = booleanPropertyNames[attrName] || attrName;
2836
2836
  if (propertyName in element) {
2837
2837
  try {
2838
- element[propertyName] = value;
2838
+ if (element[propertyName] !== value)
2839
+ element[propertyName] = value;
2839
2840
  }
2840
2841
  catch {
2841
2842
  // Some reflected DOM properties are read-only in older engines.
@@ -2866,9 +2867,14 @@
2866
2867
  }
2867
2868
  const stringValue = String(value);
2868
2869
  if (attrName === 'value' && 'value' in element) {
2869
- element.value = stringValue;
2870
+ // Compare the live control, not a cached expression: user edits and
2871
+ // external DOM changes still need reconciliation on the next update.
2872
+ if (element.value !== stringValue) {
2873
+ element.value = stringValue;
2874
+ }
2870
2875
  }
2871
- element.setAttribute(attrName, stringValue);
2876
+ if (element.getAttribute(attrName) !== stringValue)
2877
+ element.setAttribute(attrName, stringValue);
2872
2878
  }
2873
2879
  function boundAttributes(element) {
2874
2880
  return Array.from(element.attributes).filter(attribute => attribute.name.startsWith(':'));
@@ -9233,7 +9239,7 @@
9233
9239
  portalCreate,
9234
9240
  portalDestroy,
9235
9241
  setCspNonce,
9236
- version: '0.5.5'
9242
+ version: '0.5.6'
9237
9243
  };
9238
9244
 
9239
9245
  setExpressionRuntime(standardExpressionRuntime);