Permalink
Browse files

Docs template: HTML cleanup

Remove references to `/favicon.ico` as it’s the default in all browsers. More
info: http://mathiasbynens.be/notes/rel-shortcut-icon

`type=text/css` and `media=all` are the implied defaults for `<link
rel=stylesheet>` (and `<style>`), so omit these attributes.

Similarly, `type=text/javascript` is the default for `<script>` elements, so
omit these attributes.
  • Loading branch information...
1 parent cf89bee commit 456dafc3c68727225781a9a5ac5946ffb74254a9 @mathiasbynens mathiasbynens committed with bnoordhuis Nov 30, 2011
Showing with 5 additions and 7 deletions.
  1. +5 −7 doc/template.html
View
@@ -3,10 +3,8 @@
<head>
<meta charset="UTF-8" />
<title>{{section}}Node.js v0.6.3 Manual &amp; Documentation</title>
- <link type="image/x-icon" rel="icon" href="/favicon.ico" />
- <link type="image/x-icon" rel="shortcut icon" href="/favicon.ico" />
- <link rel="stylesheet" href="assets/style.css" type="text/css" media="all" />
- <link rel="stylesheet" href="assets/sh.css" type="text/css" media="all"/>
+ <link rel="stylesheet" href="assets/style.css" />
+ <link rel="stylesheet" href="assets/sh.css" />
<link rel="canonical" href="http://nodejs.org/docs/latest/api/{{filename}}.html"/>
</head>
<body>
@@ -20,8 +18,8 @@
</header>
{{content}}
</div>
- <script type="text/javascript" src="assets/sh_main.js"></script>
- <script type="text/javascript" src="assets/sh_javascript.min.js"></script>
- <script type="text/javascript">highlight(undefined, undefined, 'pre');</script>
+ <script src="assets/sh_main.js"></script>
+ <script src="assets/sh_javascript.min.js"></script>
+ <script>highlight(undefined, undefined, 'pre');</script>
</body>
</html>

0 comments on commit 456dafc

Please sign in to comment.