From 399ece21f7cadcd7282d38d8c02eb16cc1364041 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 4 Feb 2014 02:59:30 +1600 Subject: [PATCH] [PATCH 12/17] nmbug-status: Convert from XHTML 1.0 to HTML 5 --- e8/4f6868678a14213c345c46eaa0b43a11550dfe | 113 ++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 e8/4f6868678a14213c345c46eaa0b43a11550dfe diff --git a/e8/4f6868678a14213c345c46eaa0b43a11550dfe b/e8/4f6868678a14213c345c46eaa0b43a11550dfe new file mode 100644 index 000000000..d5a1f4bbb --- /dev/null +++ b/e8/4f6868678a14213c345c46eaa0b43a11550dfe @@ -0,0 +1,113 @@ +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 0FBEA429E51 + for ; Mon, 3 Feb 2014 03:01:06 -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 g2+F4OtoIY4r for ; + Mon, 3 Feb 2014 03:00:58 -0800 (PST) +Received: from qmta07.westchester.pa.mail.comcast.net + (qmta07.westchester.pa.mail.comcast.net [76.96.62.64]) + by olra.theworths.org (Postfix) with ESMTP id C58CB429E32 + for ; Mon, 3 Feb 2014 03:00:44 -0800 (PST) +Received: from omta05.westchester.pa.mail.comcast.net ([76.96.62.43]) + by qmta07.westchester.pa.mail.comcast.net with comcast + id Mmz61n0010vyq2s57n0kqQ; Mon, 03 Feb 2014 11:00:44 +0000 +Received: from odin.tremily.us ([24.18.63.50]) + by omta05.westchester.pa.mail.comcast.net with comcast + id Mn0j1n00F152l3L3Rn0kcP; Mon, 03 Feb 2014 11:00:44 +0000 +Received: from mjolnir.tremily.us (unknown [192.168.0.140]) + by odin.tremily.us (Postfix) with ESMTPS id 218F8FB4D59; + Mon, 3 Feb 2014 03:00:43 -0800 (PST) +Received: (nullmailer pid 706 invoked by uid 1000); + Mon, 03 Feb 2014 10:59:41 -0000 +From: "W. Trevor King" +To: notmuch@notmuchmail.org +Subject: [PATCH 12/17] nmbug-status: Convert from XHTML 1.0 to HTML 5 +Date: Mon, 3 Feb 2014 02:59:30 -0800 +Message-Id: + <5c61826b6a353fd36eab6e277858511ed199580c.1391424512.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=1391425244; + bh=rbw5QNaWFcDFeoj+1h1OlvAL5kldQ2rWlzsEV1+bqkw=; + h=Received:Received:Received:Received:From:To:Subject:Date: + Message-Id; + b=TFEIiOeo8xTA1TCCZyt99BCR3L3d7y2dMzBF99toxNbkhdUOdeVDfJbCP76n/HDs7 + miQJe9CQe3vU6StGKWcvGEgqiUWX1Ee2xS7eqvRHnK9i8qu+K8LLFwacWjmLnvBCE2 + Wiwn6F7m9pxm+/zLcJG7DBcWG/fMyi0xTnNT3DV8a9YKAEAI8jSH15fD7Imca/j0u8 + /dMRp06uugqFjN1Vv2JpOe49PHbBvY66MsfJvzANIo3YDQDShjLlOWmCY6rCBdwd+D + lQDbje7/u+enfq4wcuehij7QozfpEuIp0ySYg0KFBXWfqAu/1ird0LJAp6cjBp930j + LyswgK/p0RgIw== +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, 03 Feb 2014 11:01:06 -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 fdafda0..b67b86b 100755 +--- a/devel/nmbug/nmbug-status ++++ b/devel/nmbug/nmbug-status +@@ -209,9 +209,8 @@ class HtmlPage (Page): + + _PAGES['text'] = Page() + _PAGES['html'] = HtmlPage( +- header=''' +- +- ++ header=''' ++ + + + Notmuch Patches +-- +1.8.5.2.8.g0f6c0d1 + -- 2.26.2