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 E9F50429E39
\r
6 for <notmuch@notmuchmail.org>; Mon, 3 Feb 2014 03:01:14 -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 5QfjLkCmltWe for <notmuch@notmuchmail.org>;
\r
18 Mon, 3 Feb 2014 03:01:09 -0800 (PST)
\r
19 Received: from qmta10.westchester.pa.mail.comcast.net
\r
20 (qmta10.westchester.pa.mail.comcast.net [76.96.62.17])
\r
21 by olra.theworths.org (Postfix) with ESMTP id C5266429E38
\r
22 for <notmuch@notmuchmail.org>; Mon, 3 Feb 2014 03:00:45 -0800 (PST)
\r
23 Received: from omta02.westchester.pa.mail.comcast.net ([76.96.62.19])
\r
24 by qmta10.westchester.pa.mail.comcast.net with comcast
\r
25 id MmyU1n0030QuhwU5An0l29; Mon, 03 Feb 2014 11:00:45 +0000
\r
26 Received: from odin.tremily.us ([24.18.63.50])
\r
27 by omta02.westchester.pa.mail.comcast.net with comcast
\r
28 id Mn0k1n00B152l3L3Nn0lYJ; Mon, 03 Feb 2014 11:00:45 +0000
\r
29 Received: from mjolnir.tremily.us (unknown [192.168.0.140])
\r
30 by odin.tremily.us (Postfix) with ESMTPS id 21162FB4D5D;
\r
31 Mon, 3 Feb 2014 03:00:44 -0800 (PST)
\r
32 Received: (nullmailer pid 710 invoked by uid 1000);
\r
33 Mon, 03 Feb 2014 10:59:42 -0000
\r
34 From: "W. Trevor King" <wking@tremily.us>
\r
35 To: notmuch@notmuchmail.org
\r
36 Subject: [PATCH 14/17] nmbug-status: Anchor with h3 ids instead of a names
\r
37 Date: Mon, 3 Feb 2014 02:59:32 -0800
\r
39 <1e702bb793444983ef762a2c584dc401a9de0050.1391424512.git.wking@tremily.us>
\r
40 X-Mailer: git-send-email 1.8.5.2.8.g0f6c0d1
\r
41 In-Reply-To: <cover.1391424512.git.wking@tremily.us>
\r
42 References: <cover.1391424512.git.wking@tremily.us>
\r
43 In-Reply-To: <cover.1391424512.git.wking@tremily.us>
\r
44 References: <cover.1391424512.git.wking@tremily.us>
\r
45 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;
\r
46 s=q20121106; t=1391425245;
\r
47 bh=rkBMv3/4iyQ9G2mFzDun89Nv7mhxkP8/5KTicVKODOM=;
\r
48 h=Received:Received:Received:Received:From:To:Subject:Date:
\r
50 b=fNlQy6IG/5aSHcbBJIs/FudwB1JKpxLUJGEJFXDIwoPf2LkG2SdOxjcCzrLEg+112
\r
51 BiQV+Q/S1Cl2LpKe99WXEVlUcAG+zV3EbZ+rXnHRfLUeWEk49Au8VbbsyqdvnW+7Pu
\r
52 7he0hmBVtVz970ybaZJSnzo66q1hmpiN8EvfdrKNOeBnbHlgKirjYMj7M6wwFl/MLS
\r
53 6U+p+DB6Kvl5INhK82qXY0vW1OLAH78YhvDR4d7TpKnaHM4wyA8MJBclXSQXR5S49Q
\r
54 rfpAlzRglfjzXg2QVyuuBZRsQo2DDIdelldK8PJZm071sJsZ458l8THxjX07gxDQNd
\r
56 X-BeenThere: notmuch@notmuchmail.org
\r
57 X-Mailman-Version: 2.1.13
\r
59 List-Id: "Use and development of the notmuch mail system."
\r
60 <notmuch.notmuchmail.org>
\r
61 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
62 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
63 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
64 List-Post: <mailto:notmuch@notmuchmail.org>
\r
65 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
66 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
67 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
68 X-List-Received-Date: Mon, 03 Feb 2014 11:01:15 -0000
\r
70 HTML 5 allows id attributes on all HTML elements [1], but restricts
\r
71 names to particular cases [2]. Attaching the id attribute to the h3
\r
72 element allows us to drop the anchor a element altogether.
\r
74 [1]: http://www.w3.org/TR/html5/dom.html#the-id-attribute
\r
75 [2]: http://www.w3.org/TR/html5/index.html#attributes-1
\r
77 devel/nmbug/nmbug-status | 2 +-
\r
78 1 file changed, 1 insertion(+), 1 deletion(-)
\r
80 diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status
\r
81 index e86ea2a..3597389 100755
\r
82 --- a/devel/nmbug/nmbug-status
\r
83 +++ b/devel/nmbug/nmbug-status
\r
84 @@ -159,7 +159,7 @@ class HtmlPage (Page):
\r
85 stream.write('</ul>\n')
\r
87 def _write_view_header(self, view, stream):
\r
88 - stream.write('<h3><a name="{title}" />{title}</h3>\n'.format(**view))
\r
89 + stream.write('<h3 id="{title}">{title}</h3>\n'.format(**view))
\r
90 if 'comment' in view:
\r
91 stream.write(view['comment'])
\r