Track changes started out as a pure CSS exercise. I thought it would be simple to have a style switcher that would show or hide
<ins> tags by changing the display property. It was, but I ran into a problem: when the text was copied to the clipboard, the deleted items were included. After some hair-pulling, I decided the best workaround would be to clone the content and remove the
<del> elements from the DOM when changes were hidden. I’d seen an excellent example of cloning content to toggle it, and I modified it to handle the
I know it’s probably out of scope, but it’d be pretty spiffy if it could track multiple changes–e.g. by using an attribute like rev:
Uh oh–blog ate my tags
I think that should work….
Sorry about that!
Those two tags do support the cite attribute for date/time and author info, so it should be relatively easy to pull that out and make use of it… I’ll experiment sometime.