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 DD026429E54
\r
6 for <notmuch@notmuchmail.org>; Mon, 10 Feb 2014 10:42:30 -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 JcrHPjEOQ6qs for <notmuch@notmuchmail.org>;
\r
18 Mon, 10 Feb 2014 10:42:24 -0800 (PST)
\r
19 Received: from qmta14.westchester.pa.mail.comcast.net
\r
20 (qmta14.westchester.pa.mail.comcast.net [76.96.59.212])
\r
21 by olra.theworths.org (Postfix) with ESMTP id EF44B429E28
\r
22 for <notmuch@notmuchmail.org>; Mon, 10 Feb 2014 10:42:00 -0800 (PST)
\r
23 Received: from omta03.westchester.pa.mail.comcast.net ([76.96.62.27])
\r
24 by qmta14.westchester.pa.mail.comcast.net with comcast
\r
25 id QczU1n0060bG4ec5Eii00J; Mon, 10 Feb 2014 18:42:00 +0000
\r
26 Received: from odin.tremily.us ([24.18.63.50])
\r
27 by omta03.westchester.pa.mail.comcast.net with comcast
\r
28 id Qihz1n00N152l3L3Pii0kY; Mon, 10 Feb 2014 18:42:00 +0000
\r
29 Received: from mjolnir.tremily.us (unknown [192.168.0.140])
\r
30 by odin.tremily.us (Postfix) with ESMTPS id 135E710167BF;
\r
31 Mon, 10 Feb 2014 10:41:59 -0800 (PST)
\r
32 Received: (nullmailer pid 1276 invoked by uid 1000);
\r
33 Mon, 10 Feb 2014 18:40:45 -0000
\r
34 From: "W. Trevor King" <wking@tremily.us>
\r
35 To: notmuch@notmuchmail.org
\r
36 Subject: [PATCH v2 15/20] nmbug-status: Anchor with h3 ids instead of a names
\r
37 Date: Mon, 10 Feb 2014 10:40:36 -0800
\r
39 <7d6785c33c56545917c144b69e31d9beb9255278.1392056624.git.wking@tremily.us>
\r
40 X-Mailer: git-send-email 1.8.5.2.8.g0f6c0d1
\r
41 In-Reply-To: <cover.1392056624.git.wking@tremily.us>
\r
42 References: <cover.1392056624.git.wking@tremily.us>
\r
43 In-Reply-To: <cover.1392056624.git.wking@tremily.us>
\r
44 References: <cover.1392056624.git.wking@tremily.us>
\r
45 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;
\r
46 s=q20121106; t=1392057720;
\r
47 bh=C27T/66OjWXKoqDKJAEIZ7Cbz0b/93veZb38VV0QkOs=;
\r
48 h=Received:Received:Received:Received:From:To:Subject:Date:
\r
50 b=cfXQSqakXX3HyyJPFfaZPdgeLgSp3EaeLF8rKNcAwbfVTaq3JjqST7fUi5HyuifDd
\r
51 UwQGq3yLQGof8+5SQBBjlSBwe/IOHhmU1t+LVUcJl7Yjelrlh6SKrXzMbYywuyWXS8
\r
52 79XF/OvPhxP7YuW21PCmF1MYJuAJkq5XEpwBhqZA7pGVNvROD+A1OuXdwxQkEcw+SY
\r
53 UtpKTqOvzwZL4EO6ig9zfjimpoG4b/QcAoR+QuBHrhD0t4tpAkuPgpqP9Y5HxdVa22
\r
54 r8r7EwAP85dUoRjZo1KD3sPy2UkcUUBXOW4VEE2cHcHOA0/U96dDO02ym6pgJnMH4D
\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: Mon, 10 Feb 2014 18:42:31 -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 040baf0..2b1f364 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