-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
@richgilbank you mentioned you may have something in the works for this. Would love a peak/insight. I know right now we store the HTMLElement Object, which isn't ideal.
Eventually, we'll need to do something like JSON.stringify( this.dssEvents ) and storing element objects wouldn't be great if we want the output to be pretty-printed for manual manipulation/storage. I think the best case scenario is to be able to store a selector string.
One strategy could be:
- Check for an
id - Fallback: Generate a selector for the element, based on its attributes and tagname, then find it's position relative to any other elements matching that selector (thus, creating a unique selector string)
I may mock this out if I have time but let me know your thoughts.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels