[PATCH 0/4] Better HTML templates redux
Matt Mackall
mpm at selenic.com
Sat Jul 2 22:25:34 CDT 2005
On Sun, Jul 03, 2005 at 12:14:48AM +0200, Edouard Gomez wrote:
> As requested, here is a reworked set of patches to improve HTML
> semantic in hgweb templates.
>
> This time, the series of patches include the strictly necessary
> CSS classes/id selectors to match old style and improve the semantic
> of the HTML (eg: telling what the cell means)
>
> I won't mark the code as XHTML until i finish transtionning all pages
> to a better HTML code. Then the XHTML/HTML difference will be already
> pretty small (maybe some short tags not closed like inputs).
This set looks great, applied.
> PS: though w3c validator shouts about the non presence of meta tag
> sepicfying the charset, i don't know if it's correct to hardwire this to
> utf-8 as hg doesn't "norm" the encoding of the changelog entries. Any
> idea on this ? This will probably be resolved by the i18n/l10n work
> discussed on another thread.
Good question.
File contents are all pure 8-bit. If someone commits something with a
particular non-ASCII, non-UTF-8 encoding, we can't arbitrarily declare
that it's UTF-8 in the web interface, nor can we attempt to convert it
(especially given that we don't know what the encoding is!). And of
course, we'll have a fun time displaying binaries in hgweb.
Everything else (filenames, usernames, commit messages) ought to be
stored as UTF-8 eventually.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list