Skip to content

Commit

Permalink
Apparently we don't need to escape HTML in code blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
h-lame committed Nov 23, 2011
1 parent a876e27 commit 858584a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -322,7 +322,7 @@ Of course, drop-in code like google analytics is also acceptable.

Use of javascript in html attributes is bad:

<a onclick="do_something();">Do Something</a>
<a onclick="do_something();">Do Something</a>;

## Language rules

Expand Down Expand Up @@ -475,8 +475,8 @@ Do not use wrapper objects. Just declare the primitive directly:
Especially, never use the new keyword with primitive constructors. Here's
why:

typeof(Boolean()) //==&gt; 'boolean'
typeof(new Boolean()) //==&gt; 'object'
typeof(Boolean()) //==> 'boolean'
typeof(new Boolean()) //==> 'object'

There are only five primitive types in javascript, these are

Expand Down

0 comments on commit 858584a

Please sign in to comment.