Skip to content

Latest commit

 

History

History
36 lines (21 loc) · 935 Bytes

README.md

File metadata and controls

36 lines (21 loc) · 935 Bytes

Mutation Observer API demo

A simple demo shows the MutationSummary + TreeMirror libs to de/serialize content, using socket.io to sync the data.

We also try to catch & propagate two events - scroll + click.


Demo/notes

  • <base> tag; handling relative path - assets/test.css in clone.html vs test-dir/clone.html
  • scroll event on any tag
  • iframe (chat box handling, ...)
  • differences in a font or OS UI elements rendering

Usage

npm ci
npm start

Open:

Observe mirrored page (origin) in the cloned one.

Demo video

demo.mp4