frosty 0.0.94 → 0.0.95

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.
@@ -4024,10 +4024,11 @@ const DOMUtils = new class {
4024
4024
  }
4025
4025
  }
4026
4026
  else {
4027
+ const tagName = _.toLower(element.tagName);
4027
4028
  const { type: _type, attr } = htmlProps['*'][key]
4028
- ?? htmlProps[element.tagName]?.[key]
4029
+ ?? htmlProps[tagName]?.[key]
4029
4030
  ?? svgProps['*'][key]
4030
- ?? svgProps[element.tagName]?.[key]
4031
+ ?? svgProps[tagName]?.[key]
4031
4032
  ?? {};
4032
4033
  const writeable = isWriteable(element, key);
4033
4034
  if (writeable && !_.isNil(value)) {
@@ -4035,15 +4036,15 @@ const DOMUtils = new class {
4035
4036
  element[key] = value;
4036
4037
  }
4037
4038
  else if (_type && attr && _propValue[_type]) {
4038
- const oldValue = element.getAttribute(key);
4039
+ const oldValue = element.getAttribute(attr);
4039
4040
  if (value === false || _.isNil(value)) {
4040
4041
  if (!_.isNil(oldValue))
4041
- element.removeAttribute(key);
4042
+ element.removeAttribute(attr);
4042
4043
  }
4043
4044
  else {
4044
4045
  const newValue = value === true ? '' : `${value}`;
4045
4046
  if (oldValue !== newValue)
4046
- element.setAttribute(key, newValue);
4047
+ element.setAttribute(attr, newValue);
4047
4048
  }
4048
4049
  }
4049
4050
  else if (writeable) {
@@ -4248,10 +4249,6 @@ class _DOMRenderer extends _Renderer {
4248
4249
  if (!tracked)
4249
4250
  return;
4250
4251
  const removed = _.difference(tracked.props, _.keys(_props));
4251
- const props = {
4252
- ..._props,
4253
- ..._.fromPairs(_.map(removed, x => [x, undefined])),
4254
- };
4255
4252
  tracked.props = _.keys(_props);
4256
4253
  const builtClassName = this.__createBuiltClassName(element, className, style);
4257
4254
  if (!_.isEmpty(innerHTML) && element.innerHTML !== innerHTML)
@@ -4259,7 +4256,8 @@ class _DOMRenderer extends _Renderer {
4259
4256
  DOMNativeNode.Utils.update(element, {
4260
4257
  className: builtClassName,
4261
4258
  style: inlineStyle ? processCss(inlineStyle).css : undefined,
4262
- ...props,
4259
+ ..._props,
4260
+ ..._.fromPairs(_.map(removed, x => [x, undefined])),
4263
4261
  });
4264
4262
  }
4265
4263
  /** @internal */
@@ -4301,4 +4299,4 @@ class _DOMRenderer extends _Renderer {
4301
4299
  }
4302
4300
 
4303
4301
  export { DOMNativeNode as D, _DOMRenderer as _ };
4304
- //# sourceMappingURL=renderer-4YHvu-zN.mjs.map
4302
+ //# sourceMappingURL=renderer-mmUwu_Ch.mjs.map