From 8c05a827e702711ae92ea0b2ad1a769f71a744b4 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 11 Feb 2014 10:40:34 +1600 Subject: [PATCH] [PATCH v2 13/20] nmbug-status: Convert from XHTML 1.0 to HTML 5 --- 37/5d4526242d72002c8e0a27ed7e15192922fff3 | 114 ++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 37/5d4526242d72002c8e0a27ed7e15192922fff3 diff --git a/37/5d4526242d72002c8e0a27ed7e15192922fff3 b/37/5d4526242d72002c8e0a27ed7e15192922fff3 new file mode 100644 index 000000000..d403207b5 --- /dev/null +++ b/37/5d4526242d72002c8e0a27ed7e15192922fff3 @@ -0,0 +1,114 @@ +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 87F22429E51 + for ; Mon, 10 Feb 2014 10:42:28 -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 QZt9ckPD2I6m for ; + Mon, 10 Feb 2014 10:42:21 -0800 (PST) +Received: from qmta05.westchester.pa.mail.comcast.net + (qmta05.westchester.pa.mail.comcast.net [76.96.62.48]) + by olra.theworths.org (Postfix) with ESMTP id C3E92429E27 + for ; Mon, 10 Feb 2014 10:41:59 -0800 (PST) +Received: from omta06.westchester.pa.mail.comcast.net ([76.96.62.51]) + by qmta05.westchester.pa.mail.comcast.net with comcast + id QcnL1n00616LCl055ihz3X; Mon, 10 Feb 2014 18:41:59 +0000 +Received: from odin.tremily.us ([24.18.63.50]) + by omta06.westchester.pa.mail.comcast.net with comcast + id Qihy1n005152l3L3SihyP1; Mon, 10 Feb 2014 18:41:59 +0000 +Received: from mjolnir.tremily.us (unknown [192.168.0.140]) + by odin.tremily.us (Postfix) with ESMTPS id D732110167BB; + Mon, 10 Feb 2014 10:41:57 -0800 (PST) +Received: (nullmailer pid 1272 invoked by uid 1000); + Mon, 10 Feb 2014 18:40:45 -0000 +From: "W. Trevor King" +To: notmuch@notmuchmail.org +Subject: [PATCH v2 13/20] nmbug-status: Convert from XHTML 1.0 to HTML 5 +Date: Mon, 10 Feb 2014 10:40:34 -0800 +Message-Id: + +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=1392057719; + bh=I5ipKx+pLBmLrqM33TyIDrX53+gJGl8ca+THjVP1B34=; + h=Received:Received:Received:Received:From:To:Subject:Date: + Message-Id; + b=kwc7Q0zV5ir5AjhbAmqP+fdU4CYszkaLYpcNNElcSd5njvlZUwt21h8EfJp+aOw1e + vFpDJzpAOf9oI+u1IoZdTFNGeFKu8ynGgFSypbNYkiZjI0rgsNptyniM/1oEvUDtxW + B2B2Qn56umepUzWpP+EeOupcuLOG1R74GP/rUO/F87aXT87Z0sm5ymO+P0kBZ8DOtx + IXZmVWjW3m0g5KgEuF2ZhxcrVUt9xfqacmTyYjp4YmcitAXoBk22cAF+F0w7N/oed2 + YWVWCVen3617pgsMKEFc8HYyspuCFuvp9YDy5iY3VKznQWZ4yqVxCA+prBoF+XEexE + ifbvZ+jLpkaXg== +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:28 -0000 + +HTML 5 for the win :). I also de-namespaced the language; the HTML 5 +spec allows a vestigial xml:lang attribute, but it's a no-op [1], so I +stripped it. + +This shouldn't break anything at tethera, which already serves the +status as text/html: + + $ wget -S http://nmbug.tethera.net/status/ + --2014-02-02 21:20:39-- http://nmbug.tethera.net/status/ + Resolving nmbug.tethera.net... 87.98.215.224 + Connecting to nmbug.tethera.net|87.98.215.224|:80... connected. + HTTP request sent, awaiting response... + HTTP/1.1 200 OK + Vary: Accept-Encoding + Content-Type: text/html + ... + +This also matches the Content-Type in the generated HTML's http-equiv +meta. + +[1]: http://www.w3.org/TR/html5/dom.html#the-lang-and-xml:lang-attributes +--- + devel/nmbug/nmbug-status | 5 ++--- + 1 file changed, 2 insertions(+), 3 deletions(-) + +diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status +index 20e2447..873a46a 100755 +--- a/devel/nmbug/nmbug-status ++++ b/devel/nmbug/nmbug-status +@@ -227,9 +227,8 @@ class HtmlPage (Page): + + _PAGES['text'] = Page() + _PAGES['html'] = HtmlPage( +- header=''' +- +- ++ header=''' ++ + + + Notmuch Patches +-- +1.8.5.2.8.g0f6c0d1 + -- 2.26.2