From cf719ba763fdaaf9b285cb2871dad8c746e9e6b7 Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Tue, 14 May 2024 15:06:00 -0500 Subject: [PATCH] Improve HTML5 compliance (#2523) Fixes #2369 --- NEWS.md | 4 + R/navbar.R | 36 ++--- R/render.R | 7 +- inst/BS5/templates/content-article-index.html | 2 +- inst/BS5/templates/content-article.html | 2 +- inst/BS5/templates/content-authors.html | 2 +- .../templates/content-citation-authors.html | 2 +- inst/BS5/templates/content-news-index.html | 2 +- inst/BS5/templates/content-news.html | 2 +- .../templates/content-reference-index.html | 4 +- .../templates/content-reference-topic.html | 2 +- inst/BS5/templates/content-title-body.html | 2 +- .../BS5/templates/content-tutorial-index.html | 2 +- inst/BS5/templates/content-tutorial.html | 2 +- inst/BS5/templates/head.html | 5 - inst/BS5/templates/navbar.html | 2 +- po/R-pkgdown.pot | 148 +++++++++--------- tests/testthat/_snaps/navbar.md | 6 +- tests/testthat/_snaps/render.md | 2 + tests/testthat/test-navbar.R | 13 +- 20 files changed, 136 insertions(+), 111 deletions(-) diff --git a/NEWS.md b/NEWS.md index e986b09ca..9bc0c8a1d 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,9 @@ # pkgdown (development version) +* Improve HTML5 compliance (#2369): + * No longer support IE9 or earlier + * Strip trailing whitespace + * Label `