@devskin/browser-sdk 1.0.48 → 1.0.50

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.
@@ -1031,11 +1031,13 @@
1031
1031
  }
1032
1032
  }
1033
1033
  getElementSelector(element) {
1034
+ var _a;
1034
1035
  if (element.id) {
1035
1036
  return `#${element.id}`;
1036
1037
  }
1037
1038
  if (element.className) {
1038
- const classes = element.className.split(' ').filter(c => c);
1039
+ const classStr = typeof element.className === 'string' ? element.className : ((_a = element.className) === null || _a === void 0 ? void 0 : _a.baseVal) || '';
1040
+ const classes = classStr.split(' ').filter((c) => c);
1039
1041
  if (classes.length > 0) {
1040
1042
  return `${element.tagName.toLowerCase()}.${classes.join('.')}`;
1041
1043
  }