1
0
mirror of https://github.com/golang/go synced 2024-11-05 15:06:09 -07:00

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 <iant@golang.org>
This commit is contained in:
jimmyfrasche 2017-10-07 08:42:58 -07:00 committed by Ian Lance Taylor
parent ebae2dcdba
commit 0b88a3aa07
2 changed files with 2 additions and 2 deletions

View File

@ -255,7 +255,7 @@
</dl>
</div>
<h2 id="stdlib">Standard library</h2>
<img class="gopher" src="/doc/gopher/pkg.png"/>
<img alt="" class="gopher" src="/doc/gopher/pkg.png"/>
{{end}}

View File

@ -1908,7 +1908,7 @@ function cgAddChild(tree, ul, cgn) {
</dl>
</div>
<h2 id="stdlib">Standard library</h2>
<img class="gopher" src="/doc/gopher/pkg.png"/>
<img alt="" class="gopher" src="/doc/gopher/pkg.png"/>
{{end}}