Feat: Add support for replaying :defined pseudo-class of custom elements (#1155)

* Feat: Add support for replaying :defined pseudo-class of custom elements

* add isCustom flag to serialized elements

Applying Justin's review suggestion

* fix code lint error

* add custom element event

* fix: tests (#1348)

* Update packages/rrweb/src/record/observer.ts

* Update packages/rrweb/src/record/observer.ts

---------

Co-authored-by: Nafees Nehar <nafees87n@gmail.com>
Co-authored-by: Justin Halsall <Juice10@users.noreply.github.com>
This commit is contained in:
Yun Feng
2026-04-01 12:00:00 +08:00
committed by GitHub
parent 1647bc3875
commit 4157f28e7b
14 changed files with 219 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
'rrweb': patch
---
Feat: Add support for replaying :defined pseudo-class of custom elements

View File

@@ -0,0 +1,7 @@
---
'rrweb-snapshot': patch
---
Feat: Add 'isCustom' flag to serialized elements.
This flag is used to indicate whether the element is a custom element or not. This is useful for replaying the :defined pseudo-class of custom elements.