Skip to content
Browse files

fixing with mikes comments

  • Loading branch information...
1 parent c9f35bd commit 863214386e42cd166f574ea63f9d4733790e3b0e @tenderlove committed Jan 4, 2010
Showing with 5 additions and 4 deletions.
  1. +5 −4 nokogiri.markdown
View
9 nokogiri.markdown
@@ -254,10 +254,11 @@ we can say:
h3.r
-There is a subtle difference between the two previous examples. The first one
-must be an *exact match* where the second one says "the class attribute must
-contain the value r". That means only the CSS selector will match a tag like
-this:
+There is a subtle difference between the two previous examples. The selector
+`h3[@class = "r"]` must be an *exact match*. The class value must exactly
+equal the string `r`. Where as, the selector `h3.r` means "the class attribute
+must contain the value r". That means `h3.r` will match the following tag,
+but `h3[@class = "r"]` will not:
<h3 class="r foo">Hi!</h3>

0 comments on commit 8632143

Please sign in to comment.
Something went wrong with that request. Please try again.