@devskin/browser-sdk 1.0.48 → 1.0.49

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.
@@ -1035,7 +1035,8 @@
1035
1035
  return `#${element.id}`;
1036
1036
  }
1037
1037
  if (element.className) {
1038
- const classes = element.className.split(' ').filter(c => c);
1038
+ const classStr = typeof element.className === 'string' ? element.className : element.className.baseVal || '';
1039
+ const classes = classStr.split(' ').filter((c) => c);
1039
1040
  if (classes.length > 0) {
1040
1041
  return `${element.tagName.toLowerCase()}.${classes.join('.')}`;
1041
1042
  }