mol_regexp 0.0.141 → 0.0.145

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/node.test.js CHANGED
@@ -612,7 +612,7 @@ var $;
612
612
  $.$mol_jsx_booked = null;
613
613
  $.$mol_jsx_document = {
614
614
  getElementById: () => null,
615
- createElement: (name) => $.$mol_dom_context.document.createElement(name),
615
+ createElementNS: (space, name) => $.$mol_dom_context.document.createElementNS(space, name),
616
616
  createDocumentFragment: () => $.$mol_dom_context.document.createDocumentFragment(),
617
617
  };
618
618
  $.$mol_jsx_frag = '';
@@ -654,8 +654,11 @@ var $;
654
654
  }
655
655
  }
656
656
  }
657
- if (!node)
658
- node = Elem ? $.$mol_jsx_document.createElement(Elem) : $.$mol_jsx_document.createDocumentFragment();
657
+ if (!node) {
658
+ node = Elem
659
+ ? $.$mol_jsx_document.createElementNS(props?.xmlns ?? 'http://www.w3.org/1999/xhtml', Elem)
660
+ : $.$mol_jsx_document.createDocumentFragment();
661
+ }
659
662
  $.$mol_dom_render_children(node, [].concat(...childNodes));
660
663
  if (!Elem)
661
664
  return node;
@@ -672,7 +675,9 @@ var $;
672
675
  continue;
673
676
  }
674
677
  }
675
- node[key] = props[key];
678
+ else {
679
+ node[key] = props[key];
680
+ }
676
681
  }
677
682
  if (guid)
678
683
  node.id = guid;