about summary refs log tree commit homepage
path: root/t/view.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-07-06 20:52:33 +0000
committerEric Wong <e@80x24.org>2015-07-06 20:54:47 +0000
commitba91cef345da64ecda294f8f60b70b7de73ea1ec (patch)
treee4b97ffaaf479f75b4d91c2e668d4060dc7bb479 /t/view.t
parent3bcaf64163a549772df4e89cdff7522585abe962 (diff)
downloadpublic-inbox-ba91cef345da64ecda294f8f60b70b7de73ea1ec.tar.gz
view: reduce empty <a>, use "id" instead of "name" attributes
This is probably more compliant, and saves us a few bytes
on the uncompressed HTML.
Diffstat (limited to 't/view.t')
-rw-r--r--t/view.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/view.t b/t/view.t
index 18517933..63de49bd 100644
--- a/t/view.t
+++ b/t/view.t
@@ -47,7 +47,7 @@ EOF
         like($html, qr!<a\nhref="\.\./m/hello%40!s, "MID link present");
         like($html, qr/hello world\b/, "body present");
         like($html, qr/&gt; keep this inline/, "short quoted text is inline");
-        like($html, qr/<a\nname=[^>]+>&gt; Long and wordy/,
+        like($html, qr/<a\nid=[^>]+>&gt; Long and wordy/,
                 "long quoted text is anchored");
 
         # short page