You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My annotation extension works fine on my laptop but struggles on others—highlights and annotations either fail or don't apply correctly. It seems the XPath expressions aren't saved or applied properly across devices.
Possible Causes:
DOM Differences: Webpages might render differently on other devices, making XPaths inaccurate.
Dynamic Content: Content loading after annotations are saved could break XPaths.
Browser Variations: Different browser versions or settings may handle XPaths differently.
Text Node Issues: Variations in text node processing could cause mismatches.
Potential Fixes:
Use unique attributes instead of positional XPaths.
Try data attributes or CSS selectors for reliability.
Handle DOM changes dynamically with MutationObservers.
Improve how text selection is serialized for consistency.
Add better logging to pinpoint failures.
Next Step:
Set up an environment that mimics the failing devices to debug and test effectively. I need hands-on access to replicate the issue, not just feedback from others.
see title
The text was updated successfully, but these errors were encountered: