{"id":217,"date":"2003-03-25T23:38:11-05:00","date_gmt":"2003-03-26T07:38:11+00:00","guid":{"rendered":"http:\/\/peterjanes.ca\/wordpress\/?p=217"},"modified":"2003-03-25T23:38:11-05:00","modified_gmt":"2003-03-26T07:38:11+00:00","slug":"nicetitles-for-ins-and-del","status":"publish","type":"post","link":"https:\/\/peterjanes.ca\/blog\/2003\/03\/25\/nicetitles-for-ins-and-del\/","title":{"rendered":"Nicetitles for ins and&nbsp;del"},"content":{"rendered":"<div class='e-content'><p>In yet another fit of <q>great minds think alike<\/q> (yeah, I wish), I made some small updates to <cite>Stuart Langridge<\/cite>&#8216;s <a href=\"http:\/\/www.kryogenix.org\/code\/browser\/nicetitle\/\">nicetitles<\/a>&#8230; and when I went to send the diffs to him, found that <a href=\"http:\/\/www.bradchoate.com\/\"><cite>Brad Choate<\/cite><\/a> had done almost exactly the same, and added another feature too.<\/p>\n\n<p>My patch to handle the <a href=\"http:\/\/www.w3.org\/TR\/REC-html40\/struct\/text.html#h-9.4\">editing elements<\/a> in (X)HTML is slightly different than Brad&#8217;s in two respects.<\/p>\n\n<ol>\n<li>Brad&#8217;s patch only deals with <code>&lt;ins&gt;<\/code>.  I often use <code>ins<\/code> and <code>del<\/code> in pairs, such as in <a href=\"http:\/\/peterjanes.ca\/blog\/archives\/2003\/02\/25\/geek_stuff.html\">this post<\/a>, so it&#8217;s nice to have support for both.<\/li>\n<li>Brad&#8217;s patch parses a <code>datetime<\/code> format that doesn&#8217;t match the specific ISO8601 format specified in <a href=\"http:\/\/www.w3.org\/TR\/REC-html40\/types.html#type-datetime\">HTML 4.01<\/a> (and, by inference, <a href=\"http:\/\/www.w3.org\/TR\/xhtml1\/\">XHTML 1.0<\/a>).  My version isn&#8217;t quite right&#8211;it doesn&#8217;t use the specified timezone, because JavaScript&#8217;s <a href=\"http:\/\/devedge.netscape.com\/library\/manuals\/2000\/javascript\/1.5\/reference\/date.html\">Date<\/a> doesn&#8217;t&#8211;but it&#8217;s close and compact.<\/li>\n<\/ol>\n\n<p>I also stripped a bunch of old browser-specific code that isn&#8217;t used any more after <a href=\"http:\/\/paulmclanahan.com\/\"><cite>Paul McLanahan<\/cite><\/a>&#8216;s remaining-title modifications, and reformatted for consistency.<\/p>\n\n<p>Here are nicetitles in all their glory: <ins datetime=\"2003-03-25T23:38:11-05:00\">inserted<\/ins>, <del datetime=\"2003-03-25T23:38:11-05:00\">deleted<\/del>, and <a href=\"\" title=\"Anchors aweigh\">anchored<\/a>.<\/p><\/div><div class=\"syndication-links\"><\/div>","protected":false},"excerpt":{"rendered":"In yet another fit of great minds think alike (yeah, I wish), I made some small updates to Stuart Langridge&#8217;s nicetitles&#8230; 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&hellip;","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"mf2_syndication":[],"venue_id":0},"categories":[3],"tags":[],"kind":false,"_links":{"self":[{"href":"https:\/\/peterjanes.ca\/blog\/wp-json\/wp\/v2\/posts\/217"}],"collection":[{"href":"https:\/\/peterjanes.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/peterjanes.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/peterjanes.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/peterjanes.ca\/blog\/wp-json\/wp\/v2\/comments?post=217"}],"version-history":[{"count":0,"href":"https:\/\/peterjanes.ca\/blog\/wp-json\/wp\/v2\/posts\/217\/revisions"}],"wp:attachment":[{"href":"https:\/\/peterjanes.ca\/blog\/wp-json\/wp\/v2\/media?parent=217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peterjanes.ca\/blog\/wp-json\/wp\/v2\/categories?post=217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peterjanes.ca\/blog\/wp-json\/wp\/v2\/tags?post=217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}