Nicetitles for ins and del

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.

  1. Brad’s patch only deals with <ins>. I often use ins and del in pairs, such as in this post, so it’s nice to have support for both.
  2. Brad’s patch parses a datetime format 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.

Published by

6 thoughts on “Nicetitles for ins and del

  1. Pingback: Nicetitle
  2. Hello.
    Sorry but i can’t find the link to download your mod for nicetitles…

    I download a theme from Theron Parlin, and he uses a mod of the nicetitle that is CSS valid but for some reason it does not work in Opera… yours does work.

  3. Nice edits. I am having trouble finding out how to edit the date display. Any insight on that?

    I want it to display as mm/dd/yyyy. Currently it only displays as dd/mm.

    I am not a JavaScript guy… so if you had some insight it would certainly be appreciated.

  4. I’m not sure whose script you’re referring to; I’d never write something that displayed dd/mm. As I noted in the comments above, though, I use a different script now, and you’ll see that it presents the full timestamp.

Comments are closed.