Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

cleanup

  • Loading branch information...
commit 1ebebf3313cfeede287120a79fd652df0d70af35 1 parent 46de362
Douglas Crockford authored
Showing with 45 additions and 16 deletions.
  1. +45 −16 lint.html
61 lint.html
View
@@ -8,24 +8,51 @@
margin-left: 8%;
margin-right: 8%;
}
-pre {margin-left: 40px;}
-table {margin: 10px; border: 0px;}
-th, td {border: black solid 1pt; padding-left: 10px;
- padding-right: 10px; vertical-align: top;}
+pre {
+ margin-left: 40px;
+}
+table {
+ margin: 10px;
+ border: 0px;
+}
+th, td {
+ border: black solid 1pt;
+ padding-left: 10px;
+ padding-right: 10px;
+ vertical-align: top;
+}
th {
background-color: thistle;
}
td {
background-color: white;
}
-#top table {margin: 0px;}
-#top td {background-color: linen; border: 0pt; vertical-align: middle;}
-ul {list-style-type: square;}
-input[type="button"] {border: 2px solid black;}
-a:link {color: darkblue;}
-a:visited {color: purple;}
-a:hover {color: blue; text-decoration: underline;}
-a:active {color: red;}
+#top table {
+ margin: 0px;
+}
+#top td {
+ background-color: linen;
+ border: 0pt;
+ vertical-align: middle;
+}
+ul {
+ list-style-type: square;
+}
+input[type="button"] {
+ border: 2px solid black;
+}
+a:link {
+ color: darkblue;
+}
+a:visited {
+ color: purple;
+}
+a:hover {
+ color: blue;
+ text-decoration: underline;
+}
+a:active {color: red;
+}
</style>
</head>
<body bgcolor="gainsboro">
@@ -110,7 +137,7 @@ <h2 id=global>Global Variables</h2>
effect as this comment:</p>
<blockquote>
<code>/*global
-clearInterval: false, clearTimeout: false, document: false, event: false, frames: false, history: false, Image: false, location: false, name: false, navigator: false, Option: false, parent: false, screen: false, setInterval: false, setTimeout: false, window: false, XMLHttpRequest: false
+clearInterval: false, clearTimeout: false, document: false, event: false, frames: false, history: false, Image: false, location: false, name: false, navigator: false, Option: false, parent: false, screen: false, setInterval: false, setTimeout: false, window: false, XMLHttpRequest: false
*/</code></blockquote>
<p>Select the
<em>Assume console, alert, ...</em>
@@ -220,7 +247,7 @@ <h2 id="confusion">Type Confusion</h2>
errors, so type discipline might be something to consider adding to your
programming style. Also, the fastest JavaScript engines will slow down in the
presence of type confusion.
-
+
To turn off these warnings, turn on the <i>Tolerate type confusion</i> <a href="#options">option</a>. </p>
<h2 id=forin><code>for</code> <code>in</code></h2>
<p>The <code>for</code> <code>in</code> statement allows for looping through
@@ -541,10 +568,12 @@ <h2 id=options>Options</h2>
<td>Tolerate <code>==</code> and <code>!=</code></td>
<td><code>eqeq</code></td>
<td><code>true</code> if the <code>==</code> and <code>!=</code> operators should be tolerated. (<a href="#eqeq">more</a>).</td>
+ </tr>
<tr>
<td>Tolerate ES5 syntax</td>
<td><code>es5</code></td>
- <td><code>true</code> if ES5 syntax should be allowed.</a> It is likely that programs using this option will produce syntax errors on ES3 systems.</td>
+ <td><code>true</code> if ES5 syntax should be allowed.
+ It is likely that programs using this option will produce syntax errors on ES3 systems.</td>
</tr>
<tr>
<td>Tolerate <code>eval</code> </td>
@@ -678,7 +707,7 @@ <h2 id=options>Options</h2>
<tr>
<td>Assume Windows</td>
<td><code>windows</code></td>
- <td><code>true</code> if the Windows</a> globals should be predefined. <a href="#windows"><small>(more)</small></a></td>
+ <td><code>true</code> if the Windows globals should be predefined. <a href="#windows"><small>(more)</small></a></td>
</tr>
</tbody>
</table>
Please sign in to comment.
Something went wrong with that request. Please try again.