In yet another fit of great minds think alike
(yeah, I wish), I made some small updates to Stuart Langridge‘s nicetitles… and when I went to send the diffs to him, found that Brad Choate had done almost exactly the same, and added another feature too.
My patch to handle the editing elements in (X)HTML is slightly different than Brad’s in two respects.
- Brad’s patch only deals with
<ins>. I often useinsanddelin pairs, such as in this post, so it’s nice to have support for both. - Brad’s patch parses a
datetimeformat that doesn’t match the specific ISO8601 format specified in HTML 4.01 (and, by inference, XHTML 1.0). My version isn’t quite right–it doesn’t use the specified timezone, because JavaScript’s Date doesn’t–but it’s close and compact.
I also stripped a bunch of old browser-specific code that isn’t used any more after Paul McLanahan‘s remaining-title modifications, and reformatted for consistency.
Here are nicetitles in all their glory: inserted, deleted, and anchored.