1 Return-Path: <wking@tremily.us>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 4A414431FBF
\r
6 for <notmuch@notmuchmail.org>; Thu, 13 Feb 2014 08:48:52 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"
\r
12 X-Spam-Status: No, score=0 tagged_above=-999 required=5
\r
13 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001]
\r
15 Received: from olra.theworths.org ([127.0.0.1])
\r
16 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
17 with ESMTP id PBqeXDzgUvSI for <notmuch@notmuchmail.org>;
\r
18 Thu, 13 Feb 2014 08:48:46 -0800 (PST)
\r
19 Received: from qmta06.westchester.pa.mail.comcast.net
\r
20 (qmta06.westchester.pa.mail.comcast.net [76.96.62.56])
\r
21 by olra.theworths.org (Postfix) with ESMTP id 3959D431FAE
\r
22 for <notmuch@notmuchmail.org>; Thu, 13 Feb 2014 08:48:46 -0800 (PST)
\r
23 Received: from omta09.westchester.pa.mail.comcast.net ([76.96.62.20])
\r
24 by qmta06.westchester.pa.mail.comcast.net with comcast
\r
25 id Roee1n0030SCNGk56sokvJ; Thu, 13 Feb 2014 16:48:44 +0000
\r
26 Received: from odin.tremily.us ([24.18.63.50])
\r
27 by omta09.westchester.pa.mail.comcast.net with comcast
\r
28 id Rsoj1n00B152l3L3VsojEv; Thu, 13 Feb 2014 16:48:44 +0000
\r
29 Received: from mjolnir.tremily.us (unknown [192.168.0.140])
\r
30 by odin.tremily.us (Postfix) with ESMTPS id 367F7102DA00;
\r
31 Thu, 13 Feb 2014 08:48:42 -0800 (PST)
\r
32 Received: (nullmailer pid 17983 invoked by uid 1000);
\r
33 Thu, 13 Feb 2014 16:47:29 -0000
\r
34 From: "W. Trevor King" <wking@tremily.us>
\r
35 To: notmuch@notmuchmail.org
\r
36 Subject: [PATCH v3 1/8] nmbug-status: Anchor with h3 ids instead of a names
\r
37 Date: Thu, 13 Feb 2014 08:47:16 -0800
\r
39 <8ae05a47ca932b1b1fe51dbf29432963808d6d05.1392309570.git.wking@tremily.us>
\r
40 X-Mailer: git-send-email 1.8.5.2.8.g0f6c0d1
\r
41 In-Reply-To: <cover.1392309570.git.wking@tremily.us>
\r
42 References: <cover.1392309570.git.wking@tremily.us>
\r
43 In-Reply-To: <cover.1392309570.git.wking@tremily.us>
\r
44 References: <cover.1392309570.git.wking@tremily.us>
\r
45 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;
\r
46 s=q20121106; t=1392310124;
\r
47 bh=l6R/xfZ7v4x/z/gWY2dYfpQdKIVgXlITHRJ/Y/QmGqk=;
\r
48 h=Received:Received:Received:Received:From:To:Subject:Date:
\r
50 b=MvthhdXPYDEs2oXsYC03XNNc8V3oen1UwacQm49qmqS5ZQitIwLN3wqV9e1VNrNvK
\r
51 TQd4Lhcb0ojx0vfmkZHZIK8kor1qpwYsZfK/K/BybxuDFzxYmFZviBMcbXnBEg5HlV
\r
52 HSKJ2diYcKy6Rf0hgg11n/OY9B9aW8yS1wpbFsr2TpoT/yYeV7ETA9Tw7F7ZFn+6Hs
\r
53 1vYNqKK/1Zb0wIGtT7Ld0bHM5n/zBwd4e/LVEhii8RC3tjc7MEqWJgpFjziQYnVwpv
\r
54 YvsqeyAv58XmkeLWywaq78hrNvUwodYPaUIYS5Cg/TwxltTG95eIY7UHTEiuSjxtCN
\r
56 Cc: Tomi Ollila <tomi.ollila@iki.fi>
\r
57 X-BeenThere: notmuch@notmuchmail.org
\r
58 X-Mailman-Version: 2.1.13
\r
60 List-Id: "Use and development of the notmuch mail system."
\r
61 <notmuch.notmuchmail.org>
\r
62 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
63 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
64 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
65 List-Post: <mailto:notmuch@notmuchmail.org>
\r
66 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
67 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
68 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
69 X-List-Received-Date: Thu, 13 Feb 2014 16:48:52 -0000
\r
71 HTML 5 allows id attributes on all HTML elements [1], but restricts
\r
72 names to particular cases [2]. Attaching the id attribute to the h3
\r
73 element allows us to drop the anchor a element altogether.
\r
75 [1]: http://www.w3.org/TR/html5/dom.html#the-id-attribute
\r
76 [2]: http://www.w3.org/TR/html5/index.html#attributes-1
\r
78 devel/nmbug/nmbug-status | 2 +-
\r
79 1 file changed, 1 insertion(+), 1 deletion(-)
\r
81 diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status
\r
82 index 873a46a..40e6896 100755
\r
83 --- a/devel/nmbug/nmbug-status
\r
84 +++ b/devel/nmbug/nmbug-status
\r
85 @@ -177,7 +177,7 @@ class HtmlPage (Page):
\r
86 stream.write('</ul>\n')
\r
88 def _write_view_header(self, view, stream):
\r
89 - stream.write('<h3><a name="{title}" />{title}</h3>\n'.format(**view))
\r
90 + stream.write('<h3 id="{title}">{title}</h3>\n'.format(**view))
\r
91 if 'comment' in view:
\r
92 stream.write(view['comment'])
\r