Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
douglascrockford committed Jul 19, 2011
1 parent 46de362 commit 1ebebf3
Showing 1 changed file with 45 additions and 16 deletions.
61 changes: 45 additions & 16 deletions lint.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 1ebebf3

Please sign in to comment.