Fix IE 10 active link background color

Remove the gray background color from active links in IE 10.

Fix gh-172
Normalize the `template` element display

The `template` element shipped in Firefox 22 and Chrome 26. Browsers
without HTML template support should at least hide the element.
Merge upstream