From mboxrd@z Thu Jan 1 00:00:00 1970 From: aklhfex at gmail.com (Chris Mayo) Date: Mon, 18 Feb 2019 20:46:41 +0000 Subject: [PATCH 2/5] Replace table summary attribute with aria-label In-Reply-To: <20190218204644.440-1-aklhfex@gmail.com> References: <20190218204644.440-1-aklhfex@gmail.com> Message-ID: <20190218204644.440-3-aklhfex@gmail.com> summary is not valid in HTML5. Signed-off-by: Chris Mayo --- tests/t0105-commit.sh | 2 +- ui-commit.c | 2 +- ui-diff.c | 6 +++--- ui-repolist.c | 2 +- ui-summary.c | 2 +- ui-tree.c | 6 +++--- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/t0105-commit.sh b/tests/t0105-commit.sh index 9cdf55c..fd4c187 100755 --- a/tests/t0105-commit.sh +++ b/tests/t0105-commit.sh @@ -12,7 +12,7 @@ test_expect_success 'find commit subject' ' ' test_expect_success 'find commit msg' 'grep "
" tmp' -test_expect_success 'find diffstat' 'grep "" tmp' +test_expect_success 'find diffstat' 'grep "
" tmp' test_expect_success 'find diff summary' ' grep "1 files changed, 1 insertions, 0 deletions" tmp diff --git a/ui-commit.c b/ui-commit.c index 9a47b54..207854f 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -45,7 +45,7 @@ void cgit_print_commit(char *hex, const char *prefix) cgit_print_layout_start(); cgit_print_diff_ctrls(); - html("
\n"); + html("
\n"); html("
author"); cgit_open_filter(ctx.repo->email_filter, info->author_email, "commit"); html_txt(info->author); diff --git a/ui-diff.c b/ui-diff.c index 001d77e..eb0a395 100644 --- a/ui-diff.c +++ b/ui-diff.c @@ -202,7 +202,7 @@ static void cgit_print_diffstat(const struct object_id *old_oid, html("')"); } html(""); - html(""); + html("
"); max_changes = 0; cgit_diff_tree(old_oid, new_oid, inspect_filepair, prefix, ctx.qry.ignorews); @@ -485,9 +485,9 @@ void cgit_print_diff(const char *new_rev, const char *old_rev, return; if (use_ssdiff) { - html("
"); + html("
"); } else { - html("
"); + html("
"); html("
"); } cgit_diff_tree(old_rev_oid, new_rev_oid, filepair_cb, prefix, diff --git a/ui-repolist.c b/ui-repolist.c index 41424c0..bab151d 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -293,7 +293,7 @@ void cgit_print_repolist(void) else if (ctx.cfg.section_sort) sort_repolist("section"); - html(""); + html("
"); for (i = 0; i < cgit_repolist.count; i++) { ctx.repo = &cgit_repolist.repos[i]; if (!is_visible(ctx.repo)) diff --git a/ui-summary.c b/ui-summary.c index 8e81ac4..25f37dd 100644 --- a/ui-summary.c +++ b/ui-summary.c @@ -50,7 +50,7 @@ void cgit_print_summary(void) columns++; cgit_print_layout_start(); - html("
"); + html("
"); cgit_print_branches(ctx.cfg.summary_branches); htmlf("", columns); cgit_print_tags(ctx.cfg.summary_tags); diff --git a/ui-tree.c b/ui-tree.c index df8ad82..08a8505 100644 --- a/ui-tree.c +++ b/ui-tree.c @@ -22,7 +22,7 @@ static void print_text_buffer(const char *name, char *buf, unsigned long size) unsigned long lineno, idx; const char *numberfmt = "%1$d\n"; - html("
 
\n"); + html("
\n"); if (ctx.cfg.enable_tree_linenumbers) { html("
");
@@ -66,7 +66,7 @@ static void print_binary_buffer(char *buf, unsigned long size)
 	unsigned long ofs, idx;
 	static char ascii[ROWLEN + 1];
 
-	html("\n");
+	html("
\n"); html(""); for (ofs = 0; ofs < size; ofs += ROWLEN, buf += ROWLEN) { htmlf("
ofshex dumpascii
%04lx", ofs); @@ -264,7 +264,7 @@ static int ls_item(const struct object_id *oid, struct strbuf *base, static void ls_head(void) { cgit_print_layout_start(); - html("\n"); + html("
\n"); html(""); html(""); html(""); -- 2.20.1
ModeName