From: W. Trevor King Date: Mon, 10 Feb 2014 18:40:36 +0000 (+1600) Subject: [PATCH v2 15/20] nmbug-status: Anchor with h3 ids instead of a names X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=54498db27e7b98b43468964042a5cc75929edad1;p=notmuch-archives.git [PATCH v2 15/20] nmbug-status: Anchor with h3 ids instead of a names --- diff --git a/57/b8c7da8eff19f4c1e1c6b7526cb22a50bcd439 b/57/b8c7da8eff19f4c1e1c6b7526cb22a50bcd439 new file mode 100644 index 000000000..eb082713f --- /dev/null +++ b/57/b8c7da8eff19f4c1e1c6b7526cb22a50bcd439 @@ -0,0 +1,96 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id DD026429E54 + for ; Mon, 10 Feb 2014 10:42:30 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id JcrHPjEOQ6qs for ; + Mon, 10 Feb 2014 10:42:24 -0800 (PST) +Received: from qmta14.westchester.pa.mail.comcast.net + (qmta14.westchester.pa.mail.comcast.net [76.96.59.212]) + by olra.theworths.org (Postfix) with ESMTP id EF44B429E28 + for ; Mon, 10 Feb 2014 10:42:00 -0800 (PST) +Received: from omta03.westchester.pa.mail.comcast.net ([76.96.62.27]) + by qmta14.westchester.pa.mail.comcast.net with comcast + id QczU1n0060bG4ec5Eii00J; Mon, 10 Feb 2014 18:42:00 +0000 +Received: from odin.tremily.us ([24.18.63.50]) + by omta03.westchester.pa.mail.comcast.net with comcast + id Qihz1n00N152l3L3Pii0kY; Mon, 10 Feb 2014 18:42:00 +0000 +Received: from mjolnir.tremily.us (unknown [192.168.0.140]) + by odin.tremily.us (Postfix) with ESMTPS id 135E710167BF; + Mon, 10 Feb 2014 10:41:59 -0800 (PST) +Received: (nullmailer pid 1276 invoked by uid 1000); + Mon, 10 Feb 2014 18:40:45 -0000 +From: "W. Trevor King" +To: notmuch@notmuchmail.org +Subject: [PATCH v2 15/20] nmbug-status: Anchor with h3 ids instead of a names +Date: Mon, 10 Feb 2014 10:40:36 -0800 +Message-Id: + <7d6785c33c56545917c144b69e31d9beb9255278.1392056624.git.wking@tremily.us> +X-Mailer: git-send-email 1.8.5.2.8.g0f6c0d1 +In-Reply-To: +References: +In-Reply-To: +References: +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; + s=q20121106; t=1392057720; + bh=C27T/66OjWXKoqDKJAEIZ7Cbz0b/93veZb38VV0QkOs=; + h=Received:Received:Received:Received:From:To:Subject:Date: + Message-Id; + b=cfXQSqakXX3HyyJPFfaZPdgeLgSp3EaeLF8rKNcAwbfVTaq3JjqST7fUi5HyuifDd + UwQGq3yLQGof8+5SQBBjlSBwe/IOHhmU1t+LVUcJl7Yjelrlh6SKrXzMbYywuyWXS8 + 79XF/OvPhxP7YuW21PCmF1MYJuAJkq5XEpwBhqZA7pGVNvROD+A1OuXdwxQkEcw+SY + UtpKTqOvzwZL4EO6ig9zfjimpoG4b/QcAoR+QuBHrhD0t4tpAkuPgpqP9Y5HxdVa22 + r8r7EwAP85dUoRjZo1KD3sPy2UkcUUBXOW4VEE2cHcHOA0/U96dDO02ym6pgJnMH4D + xLYPQaFYm+drw== +Cc: Tomi Ollila +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Mon, 10 Feb 2014 18:42:31 -0000 + +HTML 5 allows id attributes on all HTML elements [1], but restricts +names to particular cases [2]. Attaching the id attribute to the h3 +element allows us to drop the anchor a element altogether. + +[1]: http://www.w3.org/TR/html5/dom.html#the-id-attribute +[2]: http://www.w3.org/TR/html5/index.html#attributes-1 +--- + devel/nmbug/nmbug-status | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status +index 040baf0..2b1f364 100755 +--- a/devel/nmbug/nmbug-status ++++ b/devel/nmbug/nmbug-status +@@ -177,7 +177,7 @@ class HtmlPage (Page): + stream.write('\n') + + def _write_view_header(self, view, stream): +- stream.write('

{title}

\n'.format(**view)) ++ stream.write('

{title}

\n'.format(**view)) + if 'comment' in view: + stream.write(view['comment']) + stream.write('\n') +-- +1.8.5.2.8.g0f6c0d1 +