From 0b88a3aa0751a3accc5cadec90e6c9bc88e8219e Mon Sep 17 00:00:00 2001 From: jimmyfrasche Date: Sat, 7 Oct 2017 08:42:58 -0700 Subject: [PATCH] godoc: add alt attr to gopher on main package index The gopher with a miner hat on /pkg had no alt attribute so screen readers would announce the image by its filename. As the image is purely decorative, adding the empty string as alternative text prevents the image from being announced. For golang/go#22171 Change-Id: Ib214f296d3d9f9084c44d4e33d1cbe432f2183ed Reviewed-on: https://go-review.googlesource.com/69130 Reviewed-by: Ian Lance Taylor --- godoc/static/package.html | 2 +- godoc/static/static.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/godoc/static/package.html b/godoc/static/package.html index 1d2d1e39..4244a107 100644 --- a/godoc/static/package.html +++ b/godoc/static/package.html @@ -255,7 +255,7 @@

Standard library

- + {{end}} diff --git a/godoc/static/static.go b/godoc/static/static.go index 7a5618f4..c3488f89 100644 --- a/godoc/static/static.go +++ b/godoc/static/static.go @@ -1908,7 +1908,7 @@ function cgAddChild(tree, ul, cgn) {

Standard library

- + {{end}}