Skip to content

Commit

Permalink
Fixes #38
Browse files Browse the repository at this point in the history
  • Loading branch information
addyosmani committed Dec 11, 2012
1 parent 471e77f commit 20c2880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/index.html
Expand Up @@ -207,7 +207,7 @@ <h3>We already use patterns everyday</h3>
Imagine that we have a script where for each DOM element found on a page with class "foo" we wish to increment a counter. What's the most efficient way to query for this collection of elements? Well, there are a few different ways this problem could be tackled:</p>
<p>
<ol>
<li>Select all of the elements in the page and then store references them. Next, filter this collection and use regular expressions (or another means) to only store those with the class "foo".</li>
<li>Select all of the elements in the page and then store references to them. Next, filter this collection and use regular expressions (or another means) to only store those with the class "foo".</li>
<li>
Use a modern native browser feature such as <code>querySelectorAll()</code> to select all of the elements with the class "foo".</li>
<li>Use a native feature such as <code>getElementsByClassName()</code> to similarly get back the desired collection. </li>
Expand Down

0 comments on commit 20c2880

Please sign in to comment.