For some time now, the monastery has been returning timestrings with the date parts separated by the Unicode "non-breaking hyphen" character, U+8209. I just changed the relevant code (the two places I could find) to use a regular hyphen character, because while the U+8209 character displays just fine in normal HTML text in a browser, it doesn't DWIM in any other context (afaik), of which there are many, including in normal web browsing — For example, when using it in the title attribute of an element, which gets displayed as a Tooltip in some (most?) browsers. (The general principle there is that attribute values are not supposed to be HTML.) (To see this in action, go to the Chatterbox (or last hour of cb) and hover your pointer on the name of a chatterer. The tooltip shows the date/time at which that message was chatted.)
Please tell me what, if anything, I've broken in exchange for this rather substantial fix.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Not using "non-breaking hyphen" U+8209 in timestamps (thanks)
by tye (Sage) on Jan 16, 2011 at 02:32 UTC | |
by jdporter (Paladin) on Jan 16, 2011 at 03:52 UTC | |
by tye (Sage) on Jan 16, 2011 at 06:53 UTC | |
|
Re: Not using "non-breaking hyphen" U+8209 in timestamps
by MidLifeXis (Monsignor) on Jan 18, 2011 at 14:36 UTC | |
by tye (Sage) on Jan 19, 2011 at 03:28 UTC |